diff --git a/build.sh b/build.sh index 38678b879ca99317c464e782d7ef169d6dfaffd2..bab8eb7c4dbc2e7f63fa15676b7883bf26d1880a 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