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