overwriting INCLUDE_STOPPED to be empty if INCLUDE_STOPPED_CONTAINERS is not set

This prevents the passing of arbitrary flags to docker-gen
This commit is contained in:
Tim Schneider 2018-01-23 09:51:19 +01:00
parent e2e6964944
commit be6487d532

View file

@ -16,6 +16,8 @@ fi
if [ "${INCLUDE_STOPPED_CONTAINERS}" == "true" ]; then
export INCLUDE_STOPPED=" -include-stopped"
else
export INCLUDE_STOPPED=""
fi
# Generate dhparam file if required