Permalink
Browse files

Tweaking cron scripts to no longer use a hardcoded path to site install

  • Loading branch information...
lmorchard committed Aug 11, 2010
1 parent 7c1b303 commit 5020c203d7f02432a4f3cb0fad3759e904b5d0fd
Showing with 6 additions and 21 deletions.
  1. +2 −7 cron/emit_notices.sh
  2. +2 −7 cron/retry_deferred.sh
  3. +2 −7 cron/send_mail.sh
View
@@ -1,9 +1,4 @@
#!/bin/sh
-
-WWW_HOME=/www/badger.decafbad.com
-PROJECT_ROOT=$WWW_HOME/app/badger
-
-. $WWW_HOME/env/bin/activate
+PROJECT_ROOT=`dirname $0`/..
cd $PROJECT_ROOT
-
-python manage.py emit_notices >> /www/badger.decafbad.com/logs/cron_mail.log 2>&1
+python manage.py emit_notices
View
@@ -1,9 +1,4 @@
#!/bin/sh
-
-WWW_HOME=/www/badger.decafbad.com
-PROJECT_ROOT=$WWW_HOME/app/badger
-
-. $WWW_HOME/env/bin/activate
+PROJECT_ROOT=`dirname $0`/..
cd $PROJECT_ROOT
-
-python manage.py retry_deferred >> /www/badger.decafbad.com/logs/cron_mail.log 2>&1
+python manage.py retry_deferred
View
@@ -1,9 +1,4 @@
#!/bin/sh
-
-WWW_HOME=/www/badger.decafbad.com
-PROJECT_ROOT=$WWW_HOME/app/badger
-
-. $WWW_HOME/env/bin/activate
+PROJECT_ROOT=`dirname $0`/..
cd $PROJECT_ROOT
-
-python manage.py send_mail >> /www/badger.decafbad.com/logs/cron_mail.log 2>&1
+python manage.py send_mail

0 comments on commit 5020c20

Please sign in to comment.