Skip to content

Commit 277509b

Browse files
antonymrjocoleman
authored andcommitted
Limit envsub to only variable being changed
1 parent f36963f commit 277509b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

root/init.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ mkdir -p \
1414
[[ ! -f /config/nginx/nginx.conf ]] &&
1515
cp /defaults/nginx.conf /config/nginx/nginx.conf
1616
[[ ! -f /config/nginx/site-confs/default ]] &&
17-
envsubst </defaults/default >/config/nginx/site-confs/default
17+
envsubst '${NGINX_PORT}' < /defaults/default > /config/nginx/site-confs/default
1818

1919
# create dnsmasq config, and conditionally add DHCP proxy support
2020
if [[ ! -f /config/dnsmasq/dnsmasq.conf ]]; then

0 commit comments

Comments
 (0)