Skip to content

Commit

Permalink
Update sed ownership/user command
Browse files Browse the repository at this point in the history
www-data is no longer hard-coded in blueprint.sh, so we can just change the variables at the top of the script rather than replace all
  • Loading branch information
Loki-101 authored Jun 8, 2024
1 parent 2bed0bc commit 21af2cb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ RUN wget $(curl -s https://api.github.com/repos/BlueprintFramework/framework/rel
ENV TERM=xterm

# Make blueprint.sh set ownership to nginx:nginx
RUN sed -i 's/www-data/nginx/g' blueprint.sh
RUN sed -i -E \
-e "s|OWNERSHIP=\"www-data:www-data\" #;|OWNERSHIP=\"nginx:nginx\" #;|g" \
-e "s|WEBUSER=\"www-data\" #;|WEBUSER=\"nginx\" #;|g" \
blueprint.sh

# Make the script executable and run it
RUN chmod +x blueprint.sh \
Expand Down

0 comments on commit 21af2cb

Please sign in to comment.