mirror of
https://github.com/timothymiller/cloudflare-ddns.git
synced 2026-03-21 22:48:57 -03:00
Fixed directory not set when running script with crontab
This commit is contained in:
@@ -4,7 +4,7 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
|||||||
python3 -m venv venv
|
python3 -m venv venv
|
||||||
source ./venv/bin/activate
|
source ./venv/bin/activate
|
||||||
|
|
||||||
|
cd $DIR
|
||||||
set -o pipefail; pip install -r requirements.txt | { grep -v "already satisfied" || :; }
|
set -o pipefail; pip install -r requirements.txt | { grep -v "already satisfied" || :; }
|
||||||
|
|
||||||
cd $DIR
|
|
||||||
python3 cloudflare-ddns.py
|
python3 cloudflare-ddns.py
|
||||||
|
|||||||
Reference in New Issue
Block a user