Add missing venv python to cron scripts
Cron scripts are using the /usr/askbot-env environment. Change-Id: Iad4d0bf886cf62747d5e51383d89b1af3fe8edc7
This commit is contained in:
parent
ba6be8bb7d
commit
97416de469
@ -2,6 +2,6 @@
|
||||
cd <%= @site_root %>/config
|
||||
DATE=`date --rfc-3339=seconds`
|
||||
echo "Start clean session run at $DATE" >><%= @site_root %>/log/clean_session.log
|
||||
python manage.py clean_session >><%= @site_root %>/log/clean_session.log
|
||||
/usr/askbot-env/bin/python manage.py clean_session >><%= @site_root %>/log/clean_session.log
|
||||
DATE=`date --rfc-3339=seconds`
|
||||
echo "End clean session run at $DATE" >><%= @site_root %>/log/clean_session.log
|
||||
|
@ -1,3 +1,3 @@
|
||||
#!/bin/bash
|
||||
cd <%= @site_root %>/config
|
||||
python manage.py send_email_alerts
|
||||
/usr/askbot-env/bin/python manage.py send_email_alerts
|
Loading…
x
Reference in New Issue
Block a user