From 0753e8bd93b4b85815dc4a209460201a3ed3a67b Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 26 Jun 2021 09:50:57 +0200 Subject: [PATCH] Fix --- scripts/backup | 6 ------ scripts/restore | 10 +--------- scripts/upgrade | 2 +- 3 files changed, 2 insertions(+), 16 deletions(-) diff --git a/scripts/backup b/scripts/backup index f3d024e..5591094 100644 --- a/scripts/backup +++ b/scripts/backup @@ -40,12 +40,6 @@ ynh_print_info --message="Declaring files to be backed up..." ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf" -#================================================= -# BACKUP SYSTEMD -#================================================= - -ynh_backup --src_path="/usr/lib/systemd/system/loolwsd.service" - #================================================= # SPECIFIC BACKUP #================================================= diff --git a/scripts/restore b/scripts/restore index cb1341e..8e0ecee 100644 --- a/scripts/restore +++ b/scripts/restore @@ -56,14 +56,6 @@ 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 SYSTEMD -#================================================= -ynh_script_progression --message="Restoring the systemd configuration..." --weight=1 - -ynh_restore_file --origin_path="/usr/lib/systemd/system/loolwsd.service" -systemctl enable loolwsd.service --quiet - #================================================= # RESTORE CONFIGURATION #================================================= @@ -76,7 +68,7 @@ ynh_restore_file --origin_path="/etc/loolwsd/loolwsd.xml" #================================================= ynh_script_progression --message="Integrating service in YunoHost..." --weight=1 -yunohost service add $app --description="Collabora online office suite" --log="/var/log/$app/$app.log" +yunohost service add "loolwsd" --description="Collabora online office suite" --log="/var/log/$app/$app.log" #================================================= # START SYSTEMD SERVICE diff --git a/scripts/upgrade b/scripts/upgrade index 9397210..d26a96b 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -92,7 +92,7 @@ ynh_add_config --template="../conf/loolwsd.xml" --destination="/etc/loolwsd/lool #================================================= ynh_script_progression --message="Integrating service in YunoHost..." --weight=1 -yunohost service add $app --description="Collabora online office suite" --log="/var/log/$app/$app.log" +yunohost service add "loolwsd" --description="Collabora online office suite" --log="/var/log/$app/$app.log" #================================================= # START SYSTEMD SERVICE