From 31d369117a3d39b977ff4f053b2af6c5107949d2 Mon Sep 17 00:00:00 2001 From: szaimen Date: Sat, 7 May 2022 11:25:35 +0200 Subject: [PATCH] fix apache not starting Signed-off-by: szaimen --- Containers/apache/Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Containers/apache/Dockerfile b/Containers/apache/Dockerfile index 48cc760f..70142461 100644 --- a/Containers/apache/Dockerfile +++ b/Containers/apache/Dockerfile @@ -40,7 +40,8 @@ RUN a2enmod rewrite \ COPY nextcloud.conf /etc/apache2/sites-available/ -RUN a2dissite 000-default && \ +RUN set -ex; \ + a2dissite 000-default && \ a2dissite default-ssl && \ a2ensite nextcloud.conf && \ rm -rf /var/www/html/* && \ @@ -61,7 +62,8 @@ COPY supervisord.conf / RUN chmod +x /usr/bin/start.sh; \ chmod +r /supervisord.conf; \ chmod a+w /Caddyfile; \ - chmod a+w / + chmod 777 /; \ + chmod +r -R /etc/apache2 # Give root a random password RUN echo "root:$(openssl rand -base64 12)" | chpasswd