diff options
author | emkael <emkael@tlen.pl> | 2021-06-12 21:00:46 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2021-06-12 21:05:32 +0200 |
commit | fe52d49a3a956be94d56102c293666278042ff9b (patch) | |
tree | 13168b55d6ee032830044c5320e0bf860e464b12 | |
parent | aa80a70ca494f5063c5b19cceb3ea8b0caa31694 (diff) |
Re-enabling cronjobs
-rw-r--r-- | Makefile | 1 | ||||
-rw-r--r-- | _cron/autocommit | 6 | ||||
-rw-r--r-- | _cron/playoff | 6 |
3 files changed, 7 insertions, 6 deletions
@@ -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 |