Skip to content

Commit

Permalink
limit env variables used for envsubsut in dnsmasq
Browse files Browse the repository at this point in the history
  • Loading branch information
rjocoleman committed Jan 14, 2025
1 parent 277509b commit 426e3bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions root/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ mkdir -p \
[[ ! -f /config/nginx/nginx.conf ]] &&
cp /defaults/nginx.conf /config/nginx/nginx.conf
[[ ! -f /config/nginx/site-confs/default ]] &&
envsubst '${NGINX_PORT}' < /defaults/default > /config/nginx/site-confs/default
envsubst '${NGINX_PORT}' </defaults/default >/config/nginx/site-confs/default

# create dnsmasq config, and conditionally add DHCP proxy support
if [[ ! -f /config/dnsmasq/dnsmasq.conf ]]; then
Expand All @@ -28,7 +28,7 @@ if [[ ! -f /config/dnsmasq/dnsmasq.conf ]]; then
CONTAINER_IP=$(hostname -i)
export CONTAINER_IP
fi
envsubst </defaults/dnsmasq-dhcpproxy.conf >>/config/dnsmasq/dnsmasq.conf
envsubst '${DHCP_RANGE_START} ${CONTAINER_IP}' </defaults/dnsmasq-dhcpproxy.conf >>/config/dnsmasq/dnsmasq.conf
fi
fi

Expand Down

0 comments on commit 426e3bd

Please sign in to comment.