Skip to content

Commit 426e3bd

Browse files
committed
limit env variables used for envsubsut in dnsmasq
1 parent 277509b commit 426e3bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

root/init.sh

Lines changed: 2 additions & 2 deletions
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 '${NGINX_PORT}' < /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
@@ -28,7 +28,7 @@ if [[ ! -f /config/dnsmasq/dnsmasq.conf ]]; then
2828
CONTAINER_IP=$(hostname -i)
2929
export CONTAINER_IP
3030
fi
31-
envsubst </defaults/dnsmasq-dhcpproxy.conf >>/config/dnsmasq/dnsmasq.conf
31+
envsubst '${DHCP_RANGE_START} ${CONTAINER_IP}' </defaults/dnsmasq-dhcpproxy.conf >>/config/dnsmasq/dnsmasq.conf
3232
fi
3333
fi
3434

0 commit comments

Comments
 (0)