From 21af2cb488a155e1f87235d1d6b1b5eac64ad2c8 Mon Sep 17 00:00:00 2001 From: Loki <59907407+Loki-101@users.noreply.github.com> Date: Fri, 7 Jun 2024 18:59:28 -0700 Subject: [PATCH] Update sed ownership/user command 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 --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 60a0c15..f078bc0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 \