From 2401e7a995eab12dc2e9a4dafc7a2b62e9a86255 Mon Sep 17 00:00:00 2001 From: Timothy Miller <46549361+timothymiller@users.noreply.github.com> Date: Sat, 30 Jul 2022 20:14:29 -0400 Subject: [PATCH] Fixed directory not set when running script with crontab --- start-sync.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/start-sync.sh b/start-sync.sh index ffcd894..423caa7 100755 --- a/start-sync.sh +++ b/start-sync.sh @@ -4,7 +4,7 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" python3 -m venv venv source ./venv/bin/activate +cd $DIR set -o pipefail; pip install -r requirements.txt | { grep -v "already satisfied" || :; } -cd $DIR python3 cloudflare-ddns.py