From 0d6d4096e83b13c67d88cbbdf707e66ffdfc8df5 Mon Sep 17 00:00:00 2001 From: Simon L Date: Fri, 22 Sep 2023 12:38:46 +0200 Subject: [PATCH] add warning to notify-push if binary was not found Signed-off-by: Simon L --- Containers/notify-push/start.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Containers/notify-push/start.sh b/Containers/notify-push/start.sh index c20b9c0d13be..8bbcbe4c8344 100644 --- a/Containers/notify-push/start.sh +++ b/Containers/notify-push/start.sh @@ -27,6 +27,19 @@ elif [ "$CPU_ARCH" != "x86_64" ]; then export CPU_ARCH="aarch64" fi +# Add warning +if ! [ -f /nextcloud/custom_apps/notify_push/bin/"$CPU_ARCH"/notify_push ]; then + echo "The notify_push binary was not found." + echo "Most likely is DNS resolution not working correctly." + echo "You can try to fix this by configuring a DNS server globally in dockers daemon.json." + echo "See https://dockerlabs.collabnix.com/intermediate/networking/Configuring_DNS.html" + echo "Afterwards a restart of docker should automatically resolve this." + echo "If it should still not work afterwards, feel free to create a new thread at https://github.com/nextcloud/all-in-one/discussions/new?category=questions and post the Nextcloud container logs there." + echo "" + echo "" + exit 1 +fi + # 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"