diff --git a/scripts/install b/scripts/install index a1a0da1..32a978a 100644 --- a/scripts/install +++ b/scripts/install @@ -182,7 +182,7 @@ touch "/usr/share/yunohost/templates/jitsi/auth.$domain.cfg.lua" # Add Metronome hook cp -R ../conf/metronome_regen_conf.hook /usr/share/yunohost/hooks/conf_regen/50-metronome_$app -yunohost tools regen-conf metronome +yunohost tools regen-conf metronome --force metronomectl adduser $focus_user@auth.$domain $focus_password || true metronomectl adduser $videobridge_user@auth.$domain $videobridge_secret || true diff --git a/scripts/remove b/scripts/remove index c09b4fc..9e3e883 100644 --- a/scripts/remove +++ b/scripts/remove @@ -129,7 +129,8 @@ fi # Remove Metronome Hook ynh_secure_remove --file="/usr/share/yunohost/hooks/conf_regen/50-metronome_$app" -yunohost tools regen-conf metronome + +yunohost tools regen-conf metronome --force # Delete focus user # yunohost user delete $focus_user --purge diff --git a/scripts/restore b/scripts/restore index e726e8e..523384c 100644 --- a/scripts/restore +++ b/scripts/restore @@ -125,7 +125,7 @@ ynh_restore_file --origin_path="/usr/share/yunohost/templates/jitsi/auth.$domain # Restore Metronome Hook ynh_restore_file --origin_path="/usr/share/yunohost/hooks/conf_regen/50-metronome_$app" -yunohost tools regen-conf metronome +yunohost tools regen-conf metronome --force #================================================= # RESTORE THE APP CONFIG diff --git a/scripts/upgrade b/scripts/upgrade index 9cda028..2c6673a 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -67,7 +67,8 @@ if ynh_version_gt "1.0.3387~ynh2" "${current_version}" ; then # Add Metronome hook cp -R ../conf/metronome_regen_conf.hook /usr/share/yunohost/hooks/conf_regen/50-metronome_$app - yunohost tools regen-conf metronome + + yunohost tools regen-conf metronome --force fi if ynh_version_gt "1.0.3969~ynh1" "${current_version}" ; then