summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile1
-rw-r--r--_cron/autocommit6
-rw-r--r--_cron/playoff6
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