Updated the update_cloudflare_ip.sh script so it looks for the ENV and LOG DIR in the PWD of the SCRIPT_DIR

This commit is contained in:
phil committed 2026-10-16 23:19:41 +01:00
1 parent 514d2755dd
commit e8527be64f
1 file changed
+3 -2
@@ -3,8 +3,9 @@
set -euo pipefail set -euo pipefail
# --- Configuration --- # --- Configuration ---
: "${ENV_DIR:="./zones"}" SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
: "${LOG_DIR:="./logs"}" : "${ENV_DIR:="$SCRIPT_DIR/zones"}"
: "${LOG_DIR:="$SCRIPT_DIR/logs"}"
DATE=$(date +%F) DATE=$(date +%F)
LOG_FILE="$LOG_DIR/update_${DATE}.log" LOG_FILE="$LOG_DIR/update_${DATE}.log"