From 5bda2c108106348a8065eb4ea8c3d60382463754 Mon Sep 17 00:00:00 2001 From: MrMeeb Date: Thu, 30 May 2024 19:55:39 +0000 Subject: [PATCH] Correct detection of missing APPRISE_URL --- root/certbot-prepare.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/certbot-prepare.sh b/root/certbot-prepare.sh index 6c4d93f..7931fc0 100644 --- a/root/certbot-prepare.sh +++ b/root/certbot-prepare.sh @@ -47,7 +47,7 @@ function better_exit { } # Check APPRISE_URL is set if either NOTIFY_ON_SUCCESS or NOTIFY_ON_FAILURE are set -if [ ! -z "${NOTIFY_ON_SUCCESS}" ] || [ ! -z "${NOTIFY_ON_FAILURE}" ] && [ -z "${APPRISE_URL}" ]; then +if [ "${NOTIFY_ON_SUCCESS}" = "true" ] || [ "${NOTIFY_ON_FAILURE}" = "true" ] && [ -z "${APPRISE_URL}" ]; then echo "You have notifications enabled but have not set APPRISE_URL. Please set APPRISE_URL and restart the container." better_exit