From b60392128cca1b78be521df08d0f7c65d977928b Mon Sep 17 00:00:00 2001 From: yalh76 Date: Tue, 5 Feb 2019 17:41:18 +0100 Subject: [PATCH] Implementing ynh_systemd_action on all scripts/install --- scripts/install | 10 ++++++---- scripts/restore | 8 +++++++- scripts/upgrade | 8 +++++++- 3 files changed, 20 insertions(+), 6 deletions(-) diff --git a/scripts/install b/scripts/install index ce4b4ee..c7d337d 100755 --- a/scripts/install +++ b/scripts/install @@ -147,9 +147,11 @@ fi #================================================= # RELOAD NGINX #================================================= -ynh_print_info "Starting wekan ..." -systemctl restart $app + systemctl reload nginx -ynh_print_info "Waiting for wekan to be up ..." -sleep 20 +#================================================= +# START SERVICE +#================================================= + +ynh_systemd_action --action=start --service_name=$app --log_path="systemd" --line_match="Finishing add-custom-html-before-body-end migration" diff --git a/scripts/restore b/scripts/restore index 8d13fc2..a70004d 100644 --- a/scripts/restore +++ b/scripts/restore @@ -107,5 +107,11 @@ fi #================================================= # RELOAD NGINX #================================================= -systemctl restart $app + systemctl reload nginx + +#================================================= +# START SERVICE +#================================================= + +ynh_systemd_action --action=start --service_name=$app --log_path="systemd" diff --git a/scripts/upgrade b/scripts/upgrade index 5854c49..bc6d4dd 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -114,5 +114,11 @@ popd #================================================= # RELOAD NGINX #================================================= -systemctl restart $app + systemctl reload nginx + +#================================================= +# START SERVICE +#================================================= + +ynh_systemd_action --action=start --service_name=$app --log_path="systemd"