Skip to content

Commit 3af0338

Browse files
authored
delimiter
1 parent bd728e5 commit 3af0338

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pritunl-nginx-proxy/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ envsubst '${NGINX_PORT} ${PROXY_PASS_DEFAULT} ${PROXY_PORT_DEFAULT} ${ADDITIONAL
119119
< /etc/nginx/templates/nginx.conf.template > /etc/nginx/nginx.conf.tmp
120120

121121
# Inject dynamic server blocks before closing HTTP block
122-
sed -i '/^}$/i '"${DYNAMIC_SERVER_BLOCKS}" /etc/nginx/nginx.conf.tmp
122+
sed -i '/^}$/i '"$(echo "${DYNAMIC_SERVER_BLOCKS}" | sed 's/|/\\|/g')" /etc/nginx/nginx.conf.tmp
123123
mv /etc/nginx/nginx.conf.tmp /etc/nginx/nginx.conf
124124

125125
log "Final Nginx configuration:"

0 commit comments

Comments
 (0)