add environment variables to the bash script

This commit is contained in:
Andreas Zweili 2016-12-31 14:31:40 +01:00
parent 71a9ed4440
commit 08cee7696c
1 changed files with 4 additions and 3 deletions

View File

@ -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