From: Guillaume Pellerin Date: Fri, 10 Mar 2017 13:00:46 +0000 (+0100) Subject: Fix cron PATH X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=e9d32aa39656306d44d2c955b63826aa0f186510;p=mezzo.git Fix cron PATH --- diff --git a/bin/poll_twitter.sh b/bin/poll_twitter.sh old mode 100644 new mode 100755 diff --git a/etc/cron.d/app b/etc/cron.d/app index ce1d3837..348e1c16 100755 --- a/etc/cron.d/app +++ b/etc/cron.d/app @@ -1,7 +1,6 @@ -APP=vertigo -LOG=/srv/$APP/var/log -PATH=$PATH/usr/sbin:/sbin:/bin:/srv/$APP/bin/ +APP=/srv/vertigo LOG=/srv/vertigo/var/log/cron +PATH=$PATH:/usr/sbin:/sbin:/bin:/usr/local/bin -0 */6 * * * root push.sh >> $LOG/push.log 2>&1 -*/10 * * * * root poll_twitter.sh >> $LOG/pull_twitter.log 2>&1 -#0,30 * * * * root upgrade.sh >> $LOG/upgrade.log 2>&1 +0 */6 * * * root cd $APP; bin/push.sh >> $LOG/push.log +* * * * * root cd $APP; bin/poll_twitter.sh; touch $LOG/pull_twitter.log +#0,30 * * * * root upgrade.sh >> $LOG/upgrade.log