Browse Source

Corrected folder for files when run from CRON. My implementation didn't work so reverted to reference method

master
Paul Git 1 year ago
parent
commit
ee95180ee6
  1. 3
      cloudflare-ddns.sh

3
cloudflare-ddns.sh

@ -192,7 +192,8 @@ main()
}
# Keep files in the same folder when run from cron
CURRENT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
CURRENT="$(pwd)"
cd "$(dirname "$(readlink -f "$0")")"
# Setup some key variables
CONFIG_FILE="cloudflare-ddns.conf"

Loading…
Cancel
Save