From e9d32aa39656306d44d2c955b63826aa0f186510 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Fri, 10 Mar 2017 14:00:46 +0100 Subject: [PATCH] Fix cron PATH --- bin/poll_twitter.sh | 0 etc/cron.d/app | 11 +++++------ 2 files changed, 5 insertions(+), 6 deletions(-) mode change 100644 => 100755 bin/poll_twitter.sh 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 -- 2.39.5