From 9a0ca4d1075f879b812cd8a1b55ab3a2c8e07c40 Mon Sep 17 00:00:00 2001 From: emkael Date: Thu, 8 Oct 2020 23:58:30 +0200 Subject: Multiple configs handling rewritten to use envsubst --- ausbutler-single.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'ausbutler-single.sh') diff --git a/ausbutler-single.sh b/ausbutler-single.sh index 322c9ab..2f95c68 100755 --- a/ausbutler-single.sh +++ b/ausbutler-single.sh @@ -5,7 +5,15 @@ cd "$(dirname "$0")" echo "Processing $TOURNAMENT..." -ln -sfn configs/config.$TOURNAMENT config +set -o allexport +source configs/_common.env +source configs/$TOURNAMENT.env +set +o allexport + +ls config.template | while read CONFIGFILE +do + envsubst < config.template/$CONFIGFILE > config/$CONFIGFILE +done python jfrteamy-ausbutler/butler.py calculate generate nowait echo "Done" -- cgit v1.2.3