Skip to content

Commit

Permalink
add warning to notify-push if binary was not found
Browse files Browse the repository at this point in the history
Signed-off-by: Simon L <szaimen@e.mail.de>
  • Loading branch information
szaimen committed Sep 22, 2023
1 parent 3e08843 commit acda7da
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Containers/notify-push/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit acda7da

Please sign in to comment.