blob: 09543475fc3be283e2564f4749c80ee3cf192c42 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#!/bin/bash
set -eu
TOURNAMENT=$1
cd "$(dirname "$0")"
echo "Processing $TOURNAMENT..."
mkdir -p 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
mkdir -p ${LIGA_AUSBUTLER_OUTPUT_PATH}
python jfrteamy-ausbutler/butler.py calculate generate nowait
if command -v lftp &> /dev/null
then
if [ -z ${LIGA_AUSBUTLER_FTP_ENABLED+x} ]
then
:
else
lftp -f config/send.lftp
fi
fi
rm config/*
echo "Done"
|