From 3e1292fb7a75daf658a73b332d16f22923390a33 Mon Sep 17 00:00:00 2001 From: Eduard Veit Date: Thu, 8 Jun 2023 15:55:43 +0200 Subject: [PATCH] fix(Nextcloud): wait until notify service has started --- nextcloud-installer.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nextcloud-installer.sh b/nextcloud-installer.sh index 2f8d67b..e04fd70 100644 --- a/nextcloud-installer.sh +++ b/nextcloud-installer.sh @@ -240,7 +240,10 @@ end_of_content supervisorctl update supervisorctl status uberspace web backend set /push --http --port 7867 - uberspace web backend list + local fail_counter=0 + while (uberspace web backend list | grep "/push http:7867 => NOT OK") && test $fail_counter -lt 5 + do echo 'wait another 5 seconds for notify service'; sleep 5; ((fail_counter++)) + done local trusted_proxy trusted_proxy=$(ip route | tail --lines 1 | ## filter last line