summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2022-02-23 02:36:36 +0100
committeremkael <emkael@tlen.pl>2022-02-23 02:36:36 +0100
commit04ba8ac12946835a2e4bc86a1d33b399abbde522 (patch)
treee078f1d16264750faebdbaa68376615b8e878fe4
parente5749da1c6241eb2c8d84bcdd1418f94b138879d (diff)
Env for auto-running brackets generation
-rw-r--r--.envrcbin820 -> 901 bytes
-rw-r--r--Makefile3
-rw-r--r--_cron/playoff6
m---------playoff0
4 files changed, 5 insertions, 4 deletions
diff --git a/.envrc b/.envrc
index 9ac96ce..4ea7732 100644
--- a/.envrc
+++ b/.envrc
Binary files differ
diff --git a/Makefile b/Makefile
index cd051ef..3b5d94e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
all: FORCE
pull:
- @rsync -e "ssh ${LIGA_SSH_OPTS}" -q --delete --exclude=.htaccess --exclude=.git --exclude=.gitignore -urPz ${LIGA_REMOTE_WWW_DIR}/ http
+ @rsync -e "ssh ${LIGA_SSH_OPTS}" -q --delete --exclude=_log --exclude=.htaccess --exclude=.git --exclude=.gitignore -urPz ${LIGA_REMOTE_WWW_DIR}/ http
@chown www-data:www-data http -R
autocommit: pull
@@ -39,5 +39,6 @@ records: FORCE
brackets: FORCE
./playoff/scripts/generate.sh
./playoff/scripts/sync.sh
+ chown www-data:www-data ./playoff -R
FORCE:
diff --git a/_cron/playoff b/_cron/playoff
index 2a22dfa..48b425b 100644
--- a/_cron/playoff
+++ b/_cron/playoff
@@ -1,3 +1,3 @@
-# SHELL=/bin/bash
-# */3 * * * * cd $SITEPATH && source .envrc && make brackets > $SITEPATH/_log/playoff.log 2>&1
-# SHELL=/bin/sh
+SHELL=/bin/bash
+*/3 * * * * cd $SITEPATH && source .envrc && cd playoff/scripts/ && ./autorun.sh
+SHELL=/bin/sh
diff --git a/playoff b/playoff
-Subproject 405b44c2331dfa6f45a36cd5419cd18636630ba
+Subproject 0f60778be484c2b7aa906e198f2a86f8c4826a8