From 25d0bc8a983833749b453043d973345495cc0803 Mon Sep 17 00:00:00 2001 From: Thomas E Lackey Date: Wed, 22 May 2024 18:18:27 +0000 Subject: [PATCH] Case insensitive comparison (#829) Reviewed-on: https://git.vdb.to/cerc-io/stack-orchestrator/pulls/829 Co-authored-by: Thomas E Lackey Co-committed-by: Thomas E Lackey --- .../cerc-webapp-base/scripts/start-serving-app.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stack_orchestrator/data/container-build/cerc-webapp-base/scripts/start-serving-app.sh b/stack_orchestrator/data/container-build/cerc-webapp-base/scripts/start-serving-app.sh index 5358a019..adc4bd33 100755 --- a/stack_orchestrator/data/container-build/cerc-webapp-base/scripts/start-serving-app.sh +++ b/stack_orchestrator/data/container-build/cerc-webapp-base/scripts/start-serving-app.sh @@ -17,11 +17,11 @@ if [ -z "${CERC_SINGLE_PAGE_APP}" ]; then fi fi -if [ "true" == "$CERC_ENABLE_CORS" ]; then +if [ "true" == "${CERC_ENABLE_CORS,,}" ]; then CERC_HTTP_EXTRA_ARGS="$CERC_HTTP_EXTRA_ARGS --cors" fi -if [ "true" == "$CERC_SINGLE_PAGE_APP" ]; then +if [ "true" == "${CERC_SINGLE_PAGE_APP,,}" ]; then echo "Serving content as single-page app. If this is wrong, set 'CERC_SINGLE_PAGE_APP=false'" # Create a catchall redirect back to / CERC_HTTP_EXTRA_ARGS="$CERC_HTTP_EXTRA_ARGS --proxy http://localhost:${CERC_LISTEN_PORT}?"