From 4efb7f71f4b0df422ff8a67702241d45469cd7a5 Mon Sep 17 00:00:00 2001 From: Caleb Foust Date: Fri, 15 Sep 2023 09:03:18 +0000 Subject: [PATCH] fix: broken entrypoint :( --- entrypoint | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint b/entrypoint index 60b33596..6c5b9376 100755 --- a/entrypoint +++ b/entrypoint @@ -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