From 7cc719fcd679dad204f79aebb0114d9c252a8d98 Mon Sep 17 00:00:00 2001 From: Johann Hoffmann Date: Fri, 24 Jun 2022 18:41:16 +0200 Subject: [PATCH] Always re-generate config file if TEMPLATE_CONFIG is set to true (#37) Signed-off-by: Johann Hoffmann --- docker-entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 0360d15..aa28dd3 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -5,7 +5,7 @@ if [ "$SELFSIGNED_CERTS" = 'true' ]; then update-ca-certificates fi -if [[ "$TEMPLATE_CONFIG" = 'true' && ! -f "$OWFMS_CONFIG"/owfms.properties ]]; then +if [[ "$TEMPLATE_CONFIG" = 'true' ]]; then RESTAPI_HOST_ROOTCA=${RESTAPI_HOST_ROOTCA:-"\$OWFMS_ROOT/certs/restapi-ca.pem"} \ RESTAPI_HOST_PORT=${RESTAPI_HOST_PORT:-"16004"} \ RESTAPI_HOST_CERT=${RESTAPI_HOST_CERT:-"\$OWFMS_ROOT/certs/restapi-cert.pem"} \