From 210589b737a7619a3ec93ebc37aa63ef5846a1c5 Mon Sep 17 00:00:00 2001 From: Holger Frey Date: Mon, 23 Aug 2021 10:19:46 +0200 Subject: [PATCH] trying to fix pid file lock --- Dockerfile | 1 + httpd-foreground | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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