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 #=================================================