Fixed directory not set when running script with crontab
This commit is contained in:
parent
8acd8e5f59
commit
2401e7a995
@ -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