|
|
@@ -25,6 +25,16 @@ hestia_module_getvariant() {
|
|
|
osal_kv_read $HESTIA_CONF_MODULES/${1}.conf 'variant'
|
|
|
}
|
|
|
|
|
|
+hestia_module_variant_installed() {
|
|
|
+ module_installed=$(hestia_module_isinstalled $1)
|
|
|
+ if [ "$module_installed" ]; then
|
|
|
+ module_variant=$(hestia_module_getvariant $1)
|
|
|
+ if [ "$module_variant" = "$2" ]; then
|
|
|
+ echo 1
|
|
|
+ fi
|
|
|
+ fi
|
|
|
+}
|
|
|
+
|
|
|
# Backup config files (usually prior to module install)
|
|
|
# hestia_config_backup 'prefix' file1 file2 file3 ...
|
|
|
hestia_config_backup() {
|