From d869bceac4248f9ab52c7a55b97fd33198f109a3 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 31 Aug 2021 19:28:38 +0200 Subject: [PATCH] Fix --- check_process | 2 +- scripts/restore | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/check_process b/check_process index 83d408a..b0ffe67 100644 --- a/check_process +++ b/check_process @@ -16,7 +16,7 @@ upgrade=1 #upgrade=1 from_commit=CommitHash backup_restore=1 - multi_instance=1 + multi_instance=0 change_url=1 ;;; Options Email= diff --git a/scripts/restore b/scripts/restore index fc26530..dfe0c13 100644 --- a/scripts/restore +++ b/scripts/restore @@ -78,6 +78,14 @@ ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies # Install Nodejs ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version +#================================================= +# RESTORE SYSTEMD +#================================================= +ynh_script_progression --message="Restoring the systemd configuration..." --weight=1 + +ynh_restore_file --origin_path="/etc/systemd/system/$app.service" +systemctl enable $app.service --quiet + #================================================= # ADVERTISE SERVICE IN ADMIN PANEL #=================================================