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,8 +1,10 @@
#!/bin/bash
if [ ! -f /app/cloudflare-ddns/config/env.json ]; then
cp /app/cloudflare-ddns/init/default_env.json /app/cloudflare-ddns/config/env.json
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if [ ! -f $DIR/config/env.json ]; then
cp $DIR/init/default_env.json $DIR/config/env.json
fi
sh /app/cloudflare-ddns/run_script.sh
sh $DIR/run_script.sh
# tail -f /var/log/cloudflare_ddns.log