Skip to content

Commit 9f6022b

Browse files
authored
Merge pull request #78 from netbootxyz/limit_envsub
Limit envsub to only variable being changed
2 parents 9d31824 + 683adc2 commit 9f6022b

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
@@ -13,7 +13,7 @@ mkdir -p \
1313
[[ ! -f /config/nginx/nginx.conf ]] && \
1414
cp /defaults/nginx.conf /config/nginx/nginx.conf
1515
[[ ! -f /config/nginx/site-confs/default ]] && \
16-
envsubst < /defaults/default > /config/nginx/site-confs/default
16+
envsubst '${NGINX_PORT}' < /defaults/default > /config/nginx/site-confs/default
1717

1818
# Ownership
1919
chown -R nbxyz:nbxyz /assets

0 commit comments

Comments
 (0)