Skip to content

Commit

Permalink
source virtualenvwrapper.sh in cron shell scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasThoren committed May 6, 2015
1 parent 9e42d59 commit a8b7307
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions scripts/backup.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

source `which virtualenvwrapper.sh`

workon realestate
# rm /backups/realestate/realestate-db*.sql
pg_dump realestate > /backups/realestate/realestate-db-$(date +%Y-%m-%d).sql
Expand Down
2 changes: 1 addition & 1 deletion scripts/main.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

# Ran chmod +x on this file
source `which virtualenvwrapper.sh`

workon realestate
python /home/ubuntu/realestate/realestate/lib/scrape.py
Expand Down

0 comments on commit a8b7307

Please sign in to comment.