Skip to content

Commit

Permalink
fix: broken entrypoint :(
Browse files Browse the repository at this point in the history
  • Loading branch information
cfoust committed Sep 15, 2023
1 parent 5cb5b96 commit 4efb7f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ fi
CLIENT_CONFIG=$(echo "$SOUR_CONFIG" | jq '.client')
# Inject the runtime configuration into the frontend's code
# When a container is restarted, the previous FS state still exists, so detect this
if ! grep -q "INJECTED_SOUR_CONFIG" /app/index.js; then
if ! grep -q "const INJECTED_SOUR_CONFIG" /app/index.js; then
echo "const INJECTED_SOUR_CONFIG = $CLIENT_CONFIG;" >> /tmp/out.js
cat /app/index.js >> /tmp/out.js
cp /tmp/out.js /app/index.js
Expand Down

0 comments on commit 4efb7f7

Please sign in to comment.