From 4762399304b0846c96e896051bde56cccddad4d7 Mon Sep 17 00:00:00 2001 From: ale <ale@incal.net> Date: Wed, 3 Feb 2021 18:33:04 +0000 Subject: [PATCH] Ensure /var/log/apache2 exists --- build.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build.sh b/build.sh index 38678b8..bab8eb7 100755 --- a/build.sh +++ b/build.sh @@ -70,6 +70,9 @@ a2ensite ${APACHE_SITES} # The file is named 00modsecurity.conf so it is loaded first. mv /etc/modsecurity/modsecurity.conf-recommended /etc/modsecurity/00modsecurity.conf +# This needs to be writable for mod security to be able to start. +install -d -m 1777 /var/log/apache2 + # Ensure that the mount points exist. mkdir -p /opt/noblogs/www/wp-content/blogs.dir mkdir -p /opt/noblogs/www/wp-content/cache -- GitLab