Fix dynamic config generation

This commit is contained in:
Willian Mitsuda 2021-07-08 16:20:22 -03:00
parent da16ce8ad6
commit b6b33812c9

View File

@ -1,4 +1,4 @@
#!/bin/sh
PARAMS=$(echo "{\"erigonURL\": \"$ERIGON_URL\"}" | jq -aRs .)
PARAMS="{\"erigonURL\": $(echo $ERIGON_URL | jq -aR .)}"
echo $PARAMS > /usr/share/nginx/html/config.json
nginx -g "daemon off;"