mirror of
https://github.com/netbootxyz/docker-netbootxyz.git
synced 2025-08-07 22:57:29 +02:00
Limit envsub to only variable being changed
This commit is contained in:
parent
f36963f39d
commit
b326528269
@ -13,8 +13,8 @@ mkdir -p \
|
|||||||
# copy config files
|
# copy config files
|
||||||
[[ ! -f /config/nginx/nginx.conf ]] &&
|
[[ ! -f /config/nginx/nginx.conf ]] &&
|
||||||
cp /defaults/nginx.conf /config/nginx/nginx.conf
|
cp /defaults/nginx.conf /config/nginx/nginx.conf
|
||||||
[[ ! -f /config/nginx/site-confs/default ]] &&
|
[[ ! -f /config/nginx/site-confs/default ]] && \
|
||||||
envsubst </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
|
# create dnsmasq config, and conditionally add DHCP proxy support
|
||||||
if [[ ! -f /config/dnsmasq/dnsmasq.conf ]]; then
|
if [[ ! -f /config/dnsmasq/dnsmasq.conf ]]; then
|
||||||
@ -28,7 +28,7 @@ if [[ ! -f /config/dnsmasq/dnsmasq.conf ]]; then
|
|||||||
CONTAINER_IP=$(hostname -i)
|
CONTAINER_IP=$(hostname -i)
|
||||||
export CONTAINER_IP
|
export CONTAINER_IP
|
||||||
fi
|
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
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user