From fa115a67c006e79d6a806f77cbdc2ef019161ba9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Wed, 14 Mar 2018 08:48:21 +0100 Subject: [PATCH] Fix envsubst undefined behaviour on some platforms in Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index cd0ce9f..72460b2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -78,7 +78,7 @@ COPY nginx/components/ ${TFW_NGINX_COMPONENTS} RUN chown -R ${AVATAO_USER} /var/log/nginx /var/lib/nginx &&\ sed -i 's#pid /run/nginx.pid;#pid /tmp/nginx.pid;#g' /etc/nginx/nginx.conf &&\ for f in "${TFW_NGINX_CONF}" ${TFW_NGINX_COMPONENTS}/*.conf; do \ - envsubst "$(printenv | cut -d= -f1 | grep TFW_ | sed -e 's/^/$/g')" < $f > $f ;\ + envsubst "$(printenv | cut -d= -f1 | grep TFW_ | sed -e 's/^/$/g')" < $f > $f~ && mv $f~ $f ;\ done COPY supervisor/supervisord.conf ${TFW_SUPERVISORD_CONF}