From 9f4966097004fad773721b7eec9876c6459e7ea2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A5l-Kristian=20Hamre?= Date: Fri, 25 Jul 2025 23:42:36 +0200 Subject: [PATCH] Make path into env var. --- run_daily_job.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/run_daily_job.sh b/run_daily_job.sh index 387180a..d181a90 100755 --- a/run_daily_job.sh +++ b/run_daily_job.sh @@ -1,10 +1,12 @@ #!/bin/bash +BASE_DIR="/home/pkhamre/git/rstat" + # CRITICAL: Navigate to the project directory using an absolute path. -cd /home/pkhamre/git/rstat +cd ${BASE_DIR} # CRITICAL: Activate the virtual environment using an absolute path. -source /home/pkhamre/git/rstat/.venv/bin/activate +source ${BASE_DIR}/.venv/bin/activate echo "--- Starting RSTAT Daily Job on $(date +%F) ---"