Make path into env var.
This commit is contained in:
@@ -1,10 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
BASE_DIR="/home/pkhamre/git/rstat"
|
||||||
|
|
||||||
# CRITICAL: Navigate to the project directory using an absolute path.
|
# 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.
|
# 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) ---"
|
echo "--- Starting RSTAT Daily Job on $(date +%F) ---"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user