From a402b57b4c34d6b67dc6306de618da88c330944d Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 26 Jun 2021 10:32:42 +0200 Subject: [PATCH] Update restore --- scripts/restore | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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