From d1107c8ba5ab53ff430290ff61e3de6f32f80f34 Mon Sep 17 00:00:00 2001 From: Kayou Date: Mon, 13 May 2019 10:27:19 +0200 Subject: [PATCH] Fix waiting for gitlab --- scripts/upgrade | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index ccca20b..222c4d2 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -296,10 +296,14 @@ fi #================================================= # WAITING GITLAB #================================================= -ynh_script_progression --message="Waiting for gitlab..." --weight=15 -# Action status to just wait the service -ynh_systemd_action --action=status --service_name="gitlab-runsvdir" --log_path="/var/log/$app/unicorn/current" --line_match="adopted" --timeout=3600 +if [ "$upgrade_type" == "UPGRADE_APP" ] +then + ynh_script_progression --message="Waiting for gitlab..." --weight=15 + + # Action status to just wait the service + ynh_systemd_action --action=status --service_name="gitlab-runsvdir" --log_path="/var/log/$app/unicorn/current" --line_match="adopted" --timeout=3600 +fi #================================================= # RELOAD NGINX