add option to retrieve ENVs from file

This commit is contained in:
t3chn0m4g3
2023-05-02 13:11:05 +02:00
parent e7963dbdaa
commit 35188ef28e
4 changed files with 24 additions and 3 deletions

10
docker/ewsposter/dist/entrypoint.sh vendored Normal file
View File

@ -0,0 +1,10 @@
#!/bin/ash
# Source ENVs from file ...
if [ -f "/data/tpot/etc/compose/elk_environment" ];
then
echo "Found .env, now exporting ..."
set -o allexport && source "/data/tpot/etc/compose/elk_environment" && set +o allexport
fi
exec /usr/bin/python3 -u /opt/ewsposter/ews.py -l $(shuf -i 10-60 -n 1)