diff --git a/scripts/restore b/scripts/restore index 8e0ecee..dedbafe 100644 --- a/scripts/restore +++ b/scripts/restore @@ -46,6 +46,13 @@ ynh_webpath_available --domain=$domain --path_url=$path_url \ ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" +#================================================= +# RESTORE CONFIGURATION +#================================================= +ynh_script_progression --message="Restoring the configuration..." --weight=3 + +ynh_restore_file --origin_path="/etc/loolwsd/loolwsd.xml" + #================================================= # SPECIFIC RESTORATION #================================================= @@ -56,12 +63,7 @@ ynh_script_progression --message="Reinstalling dependencies..." --weight=10 DEBIAN_VERSION_NUMBER=$(cat /etc/debian_version | head -n 1 | cut -f1 -d .) ynh_install_extra_app_dependencies --repo="deb https://collaboraoffice.com/repos/CollaboraOnline/CODE-debian${DEBIAN_VERSION_NUMBER} ./ " --package="$pkg_dependencies" --key="https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x0C54D189F4BA284D" -#================================================= -# RESTORE CONFIGURATION -#================================================= -ynh_script_progression --message="Restoring the configuration..." --weight=3 - -ynh_restore_file --origin_path="/etc/loolwsd/loolwsd.xml" +systemctl daemon-reload #================================================= # INTEGRATE SERVICE IN YUNOHOST