From 04ba8ac12946835a2e4bc86a1d33b399abbde522 Mon Sep 17 00:00:00 2001 From: emkael Date: Wed, 23 Feb 2022 02:36:36 +0100 Subject: Env for auto-running brackets generation --- .envrc | Bin 820 -> 901 bytes Makefile | 3 ++- _cron/playoff | 6 +++--- playoff | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.envrc b/.envrc index 9ac96ce..4ea7732 100644 Binary files a/.envrc and b/.envrc 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 index 405b44c..0f60778 160000 --- a/playoff +++ b/playoff @@ -1 +1 @@ -Subproject commit 405b44c2331dfa6f45a36cd5419cd18636630ba2 +Subproject commit 0f60778be484c2b7aa906e198f2a86f8c4826a89 -- cgit v1.2.3