From 08cee7696c2d350583e5a3941aa9dc633de011f5 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Sat, 31 Dec 2016 14:31:40 +0100 Subject: [PATCH] add environment variables to the bash script --- backup_to_external.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/backup_to_external.sh b/backup_to_external.sh index bb4b9ab..285bd0d 100755 --- a/backup_to_external.sh +++ b/backup_to_external.sh @@ -1,5 +1,6 @@ #!/bin/bash -PATH=$PATH:borg_interface/bin/ -source borg_interface/bin/activate -python3 borg_interface/backup_to_external.py +INTERFACE_PATH=/home/andreas/.virtualenvs/borg_interface +PATH=$PATH:$INTERFACE_PATH/bin/ +source $INTERFACE_PATH/bin/activate +python3 $INTERFACE_PATH/backup_to_external.py exit 0