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:
1 parent
514d2755dd
commit
e8527be64f
1 file changed
+3
-2
@@ -3,8 +3,9 @@
|
||||
set -euo pipefail
|
||||
|
||||
# --- Configuration ---
|
||||
: "${ENV_DIR:="./zones"}"
|
||||
: "${LOG_DIR:="./logs"}"
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
: "${ENV_DIR:="$SCRIPT_DIR/zones"}"
|
||||
: "${LOG_DIR:="$SCRIPT_DIR/logs"}"
|
||||
DATE=$(date +%F)
|
||||
LOG_FILE="$LOG_DIR/update_${DATE}.log"
|
||||
|
||||
|
||||
Reference in new issue
Block a user