Skip to content

Commit

Permalink
fix: reverting/fixing envsubst (#324)
Browse files Browse the repository at this point in the history
* adding conf to envsubst

* remove double paste

* nl
  • Loading branch information
plyr4 committed Feb 10, 2021
1 parent bae48ff commit f877666
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
#!/bin/sh
set -eu

for f in /srv/*.js
for f in /usr/share/nginx/html/*.js
do
# shellcheck disable=SC2016
envsubst '${VELA_API},${VELA_FEEDBACK_URL},{$VELA_DOCS_URL}' < "$f" > "$f".tmp && mv "$f".tmp "$f"
done

NGINX_CONF=/etc/nginx/conf.d/default.conf
# shellcheck disable=SC2016
envsubst '${VELA_API}' < "$NGINX_CONF" > "$NGINX_CONF".tmp && mv "$NGINX_CONF".tmp "$NGINX_CONF"

exec "$@"

0 comments on commit f877666

Please sign in to comment.