From 0e90089ef128e01df6f3a5fe80a4c9c2fe180253 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sun, 24 Apr 2022 08:35:36 +0200 Subject: [PATCH] Several fixes --- check_process | 2 +- manifest.json | 2 +- scripts/restore | 3 --- scripts/upgrade | 1 + 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/check_process b/check_process index 56617ce..2f29493 100644 --- a/check_process +++ b/check_process @@ -14,7 +14,7 @@ upgrade=1 #upgrade=1 from_commit=CommitHash backup_restore=1 - multi_instance=1 + multi_instance=0 port_already_use=0 change_url=1 ;;; Options diff --git a/manifest.json b/manifest.json index bf5ba61..45e06e3 100644 --- a/manifest.json +++ b/manifest.json @@ -21,7 +21,7 @@ "requirements": { "yunohost": ">= 4.3.0" }, - "multi_instance": true, + "multi_instance": false, "services": [ "nginx" ], diff --git a/scripts/restore b/scripts/restore index 1d8d577..1c551ac 100755 --- a/scripts/restore +++ b/scripts/restore @@ -111,9 +111,6 @@ ynh_mongo_restore_db --database="$db_name" < ./dump.bson #================================================= ynh_script_progression --message="Restoring the systemd configuration..." -ynh_restore_file --origin_path="/etc/systemd/system/$app.service" -systemctl enable $app.service --quiet - ynh_restore_file --origin_path="/etc/systemd/system/$app-chat.service" systemctl enable $app-chat.service --quiet ynh_restore_file --origin_path="/etc/systemd/system/$app-clsi.service" diff --git a/scripts/upgrade b/scripts/upgrade index bed789d..4e513a1 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -7,6 +7,7 @@ #================================================= source _common.sh +source ynh_mongo_db source /usr/share/yunohost/helpers #=================================================