Refactor file paths in Makefile, run_script.sh, and start.sh

This commit is contained in:
2024-09-12 22:14:06 +09:00
parent e04206c180
commit 27266d6001
3 changed files with 10 additions and 4 deletions

View File

@@ -1,7 +1,10 @@
#!/bin/bash
export CLOUDFLARE_API_KEY=$API_KEY
export CLOUDFLARE_DOMAIN=$DOMAIN_NAME
export CLOUDFLARE_ZONE_ID=$ZONE_ID
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# Run the script
python3 /app/cloudflare-ddns/src/update_dns.py $@
python3 $DIR/src/update_dns.py $@