Skip to content

Commit

Permalink
Fix path in entrypoint file
Browse files Browse the repository at this point in the history
  • Loading branch information
wmuldergov committed Jan 26, 2024
1 parent f4df7b8 commit c5286bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compose/frontend/entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ echo -e "window.REPLAY_THE_DAY='${REACT_APP_REPLAY_THE_DAY}';" >> $MAIN
# 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
sed -i '/auth_basic "Beta Site";/d' /etc/nginx/conf.d
sed -i '/auth_basic_user_file \/etc\/apache2\/.htpasswd;/d' /etc/nginx/conf.d
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
#Copy the content of the secret into the .htpasswd file.
echo "$TEMP_AUTH_SECRET" >> /etc/apache2/.htpasswd

0 comments on commit c5286bb

Please sign in to comment.