From 9b93349d900a562a93273aa61967ce023ca46b79 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Holcroft Date: Mon, 23 Oct 2017 15:39:50 +0200 Subject: [PATCH] Final fixes - restart service and echo instead of return --- scripts/_common.sh | 2 +- scripts/upgrade | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 9755b6f..16bd5ee 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -35,7 +35,7 @@ ynh_check_if_checksum_is_different() { check=1 fi - return "$check" + echo "$check" } ynh_psql_test_if_first_run() { diff --git a/scripts/upgrade b/scripts/upgrade index 68bf411..61e4641 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -235,4 +235,6 @@ fi # RELOAD NGINX #================================================= +systemctl stop "$app.service" +systemctl start "$app.service" systemctl reload nginx