From fe52d49a3a956be94d56102c293666278042ff9b Mon Sep 17 00:00:00 2001 From: emkael Date: Sat, 12 Jun 2021 21:00:46 +0200 Subject: Re-enabling cronjobs --- Makefile | 1 + _cron/autocommit | 6 +++--- _cron/playoff | 6 +++--- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 8f1615f..f5983c9 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,7 @@ all: FORCE pull: @rsync -e "ssh ${LIGA_SSH_OPTS}" -q --delete --exclude=.htaccess --exclude=.git --exclude=.gitignore -urPz ${LIGA_REMOTE_WWW_DIR}/ http + @chown www-data:www-data http -R autocommit: pull @cd http && git diff --quiet || (date && git add . && git commit -m 'Autocommit' && GIT_SSH_COMMAND="ssh ${LIGA_SSH_OPTS}" git push -q) diff --git a/_cron/autocommit b/_cron/autocommit index 00c4efc..a1d9b50 100644 --- a/_cron/autocommit +++ b/_cron/autocommit @@ -1,3 +1,3 @@ -# SHELL=/bin/bash -# */20 * * * * cd $SITEPATH && source .envrc && make autocommit >> $SITEPATH/_log/autocommit.log -# SHELL=/bin/sh +SHELL=/bin/bash +*/10 * * * * cd $SITEPATH && source .envrc && make autocommit >> $SITEPATH/_log/autocommit.log +SHELL=/bin/sh diff --git a/_cron/playoff b/_cron/playoff index f9cbd53..ad35c5f 100644 --- a/_cron/playoff +++ b/_cron/playoff @@ -1,3 +1,3 @@ -# SHELL=/bin/bash -# */3 * * * * cd $SITEPATH && source .envrc && make playoff >> $SITEPATH/_log/playoff.log 2>&1 -# SHELL=/bin/sh +SHELL=/bin/bash +*/3 * * * * cd $SITEPATH && source .envrc && make playoff >> $SITEPATH/_log/playoff.log 2>&1 +SHELL=/bin/sh -- cgit v1.2.3