From 6335a8427ea0d44a981966726dab6f2586935e4c Mon Sep 17 00:00:00 2001 From: Simon L Date: Thu, 30 Nov 2023 12:40:19 +0100 Subject: [PATCH] add timeout and sleep to notify-push Signed-off-by: Simon L --- Containers/notify-push/start.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Containers/notify-push/start.sh b/Containers/notify-push/start.sh index d730c7fd..e9f558c9 100644 --- a/Containers/notify-push/start.sh +++ b/Containers/notify-push/start.sh @@ -42,6 +42,11 @@ if ! [ -f /nextcloud/custom_apps/notify_push/bin/"$CPU_ARCH"/notify_push ]; then exit 1 fi +# Add a timeout of 15s to hopefully get rid of the first error that is logged if apache is not there yet +sleep 15 + +echo "notify-push was started" + # Set sensitive values as env export DATABASE_URL="postgres://$POSTGRES_USER:$POSTGRES_PASSWORD@$POSTGRES_HOST/$POSTGRES_DB" export REDIS_URL="redis://:$REDIS_HOST_PASSWORD@$REDIS_HOST"