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"