diff --git a/Dockerfile b/Dockerfile index 0809994..4f6ca1f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,6 +28,7 @@ RUN chmod u+x /usr/local/bin/httpd-foreground # setup the right permissions for deploy user RUN chown -R deploy:deploy /var/www/ +RUN chown -R deploy:deploy /run/apache2/ RUN chown -R deploy:deploy /var/log/apache2/ USER deploy diff --git a/httpd-foreground b/httpd-foreground index 8ac3d22..e109f0e 100644 --- a/httpd-foreground +++ b/httpd-foreground @@ -2,6 +2,6 @@ set -e # Apache gets grumpy about PID files pre-existing -rm -f /usr/local/apache2/logs/httpd.pid +rm -f /run/apache2/httpd.pid exec httpd -DFOREGROUND "$@" \ No newline at end of file