From 698fd7673e4f03aa14183b8d895f622d7857131e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Wed, 18 Oct 2023 16:48:55 +0200 Subject: [PATCH] fix --- scripts/backup | 1 + scripts/restore | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/backup b/scripts/backup index ad76be2..2356740 100644 --- a/scripts/backup +++ b/scripts/backup @@ -32,6 +32,7 @@ ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf" #================================================= ynh_backup --src_path="/etc/$app/" +ynh_backup --src_path="/var/lib/$app/" #================================================= # END OF SCRIPT diff --git a/scripts/restore b/scripts/restore index ceed8c7..7eba623 100644 --- a/scripts/restore +++ b/scripts/restore @@ -27,10 +27,11 @@ chown -R $app:www-data "$install_dir" ynh_script_progression --message="Restoring various files..." ynh_restore_file --origin_path="/etc/$app/" +ynh_restore_file --origin_path="/var/lib/$app/" ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" -ynh_restore_file --origin_path="/etc/systemd/system/$app.service" +#ynh_restore_file --origin_path="/etc/systemd/system/$app.service" systemctl enable $app.service --quiet yunohost service add $app --description="Web-based Game Server Management System" --log="/var/log/$app/$app.log"