]> git.parisson.com Git - mezzo.git/commitdiff
Fix cron PATH
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Fri, 10 Mar 2017 13:00:46 +0000 (14:00 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Fri, 10 Mar 2017 13:00:46 +0000 (14:00 +0100)
bin/poll_twitter.sh [changed mode: 0644->0755]
etc/cron.d/app

old mode 100644 (file)
new mode 100755 (executable)
index ce1d3837145be6da1bdbda4736d09b4d5ba24807..348e1c16c65dc8e227afd85535a09b938fd58e7c 100755 (executable)
@@ -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