From fb8d9f235a7c341015a1a14d0e410dc699c47a62 Mon Sep 17 00:00:00 2001 From: Mulder Date: Fri, 26 Jan 2024 10:35:40 -0800 Subject: [PATCH] Update entrypoint cleanup in env variable --- compose/frontend/entrypoint | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compose/frontend/entrypoint b/compose/frontend/entrypoint index 035824107..b26012cc0 100644 --- a/compose/frontend/entrypoint +++ b/compose/frontend/entrypoint @@ -11,9 +11,9 @@ echo -e "window.ROUTE_PLANNER_KEY='${REACT_APP_ROUTE_PLANNER_KEY}';" >> $MAIN echo -e "window.REPLAY_THE_DAY='${REACT_APP_REPLAY_THE_DAY}';" >> $MAIN #FOLLOWING SECTION IS TEMPORARY FOR THE PRIVATE BETA -# Check if $ENVIRONMENT is not set to "Prod". If it is prod we want to keep these lines -if [ "$ENV" != "Prod" ]; then - # Remove the specified lines from nginx.conf +# Check if $ENVIRONMENT is not set to "prod". If it is prod we want to keep these lines +if [ "$ENVIRONMENT" != "prod" ]; then + # Remove the specified lines from default.conf sed -i '/auth_basic "Beta Site";/d' /etc/nginx/conf.d/default.conf sed -i '/auth_basic_user_file \/etc\/apache2\/.htpasswd;/d' /etc/nginx/conf.d/default.conf fi