diff --git a/Containers/notify-push/healthcheck.sh b/Containers/notify-push/healthcheck.sh index e2539436..c17ab9cf 100644 --- a/Containers/notify-push/healthcheck.sh +++ b/Containers/notify-push/healthcheck.sh @@ -1,5 +1,9 @@ #!/bin/bash +if [ "$AIO_LOG_LEVEL" = 'debug' ]; then + set -x +fi + if ! nc -z "$NEXTCLOUD_HOST" 9001; then exit 0 fi diff --git a/Containers/notify-push/start.sh b/Containers/notify-push/start.sh index 45532622..335a299d 100644 --- a/Containers/notify-push/start.sh +++ b/Containers/notify-push/start.sh @@ -1,5 +1,11 @@ #!/bin/bash +if [ "$AIO_LOG_LEVEL" = 'debug' ]; then + set -x +fi + +export RUST_LOG="$AIO_LOG_LEVEL" + if [ -z "$NEXTCLOUD_HOST" ]; then echo "NEXTCLOUD_HOST needs to be provided. Exiting!" exit 1