mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 01:27:27 -04:00
add option to retrieve ENVs from file
This commit is contained in:
@ -64,4 +64,4 @@ HEALTHCHECK --retries=10 CMD curl -s -XGET 'http://127.0.0.1:9600'
|
||||
#
|
||||
# Start logstash
|
||||
USER logstash:logstash
|
||||
CMD entrypoint.sh && exec /usr/share/logstash/bin/logstash --config.reload.automatic
|
||||
CMD entrypoint.sh
|
||||
|
9
docker/elk/logstash/dist/entrypoint.sh
vendored
9
docker/elk/logstash/dist/entrypoint.sh
vendored
@ -6,6 +6,13 @@ function fuCLEANUP {
|
||||
}
|
||||
trap fuCLEANUP EXIT
|
||||
|
||||
# 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
|
||||
|
||||
# Check internet availability
|
||||
function fuCHECKINET () {
|
||||
mySITES=$1
|
||||
@ -85,3 +92,5 @@ if [ "$myTPOTILM" == "1" ];
|
||||
echo "T-Pot ILM already configured or ES not available."
|
||||
fi
|
||||
echo
|
||||
|
||||
exec /usr/share/logstash/bin/logstash --config.reload.automatic
|
||||
|
Reference in New Issue
Block a user