diff --git a/webmails/roundcube/Dockerfile b/webmails/roundcube/Dockerfile index edd7ad41..5abcba73 100644 --- a/webmails/roundcube/Dockerfile +++ b/webmails/roundcube/Dockerfile @@ -21,7 +21,7 @@ RUN set -eu \ && pip3 install socrate \ && echo date.timezone=UTC > /usr/local/etc/php/conf.d/timezone.ini \ && echo "ServerSignature Off\nServerName roundcube" >> /etc/apache2/apache2.conf \ - && sed -i 's,CustomLog.*combined$,\0 "'"expr=!(%{HTTP_USER_AGENT}=='health'\&\&(-R '127.0.0.1/8' || -R '::1'))"'",' /etc/apache2/sites-available/000-default.conf \ + && sed -i '/CustomLog.*combined$/d' /etc/apache2/sites-available/000-default.conf \ \ && mark="$(apt-mark showmanual)" \ && apt-get install -y --no-install-recommends \ diff --git a/webmails/roundcube/start.py b/webmails/roundcube/start.py index 2c66bf19..bea31f4b 100755 --- a/webmails/roundcube/start.py +++ b/webmails/roundcube/start.py @@ -72,6 +72,9 @@ conf.jinja("/config.inc.php", context, "/var/www/html/config/config.inc.php") # create dirs os.system("mkdir -p /data/gpg") +# disable access log for VirtualHosts that don't define their own logfile +os.system("a2disconf other-vhosts-access-log") + print("Initializing database") try: result = subprocess.check_output(["/var/www/html/bin/initdb.sh", "--dir", "/var/www/html/SQL"],