Skip to content

Commit

Permalink
Remove chown setting www-data owner of /tmp/modsecurity
Browse files Browse the repository at this point in the history
  • Loading branch information
mivek committed Jun 9, 2024
1 parent 1bbc582 commit ac7882a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion apache/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ RUN set -eux; \
mkdir -p /tmp/modsecurity/data; \
mkdir -p /tmp/modsecurity/upload; \
mkdir -p /tmp/modsecurity/tmp; \
chown -R $(awk '/^User/ { print $2;}' /usr/local/apache2/conf/httpd.conf) /tmp/modsecurity; \
mkdir -p /var/log/apache2/; \
ln -s /opt/owasp-crs /etc/modsecurity.d/; \
sed -i -E 's|(Listen) [0-9]+|\1 ${PORT}|' /usr/local/apache2/conf/httpd.conf; \
Expand Down
1 change: 0 additions & 1 deletion apache/Dockerfile-alpine
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,6 @@ RUN set -eux; \
mkdir -p /tmp/modsecurity/data; \
mkdir -p /tmp/modsecurity/upload; \
mkdir -p /tmp/modsecurity/tmp; \
chown -R $(awk '/^User/ { print $2;}' /usr/local/apache2/conf/httpd.conf) /tmp/modsecurity /var/log/apache2; \
chown -R httpd:httpd \
/var/log/ \
/usr/local/apache2/ \
Expand Down

0 comments on commit ac7882a

Please sign in to comment.