From 3be6eaee0c93fa7989fd6ec7ae419724835f058d Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Sun, 19 Jul 2026 18:52:34 -0600 Subject: [PATCH] [preflight] Add check for logger dependency 'logger' is required to facilitate logging to the journaling system. --- cfddns.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cfddns.sh b/cfddns.sh index e09f0b6..5589725 100644 --- a/cfddns.sh +++ b/cfddns.sh @@ -373,6 +373,10 @@ fi if [ ! -f "$accountFile" ] || [ ! -s "$accountFile" ]; then badParam errMsg "Cannot find Cloudflare credentials file (${accountFile}). Exiting." fi +if ! command -v logger >/dev/null 2>&1; then + printf "\n%sThis script requires 'logger' be installed to write entries to your journaling system. Exiting.%s\n\n" "$err" "$norm" + exit 2 +fi # turn off log file colourization if parameter is set if [ "$colourizeLogFile" -eq 0 ]; then bold=""