Browse Source

trying to fix pid file lock

main
Holger Frey 3 years ago
parent
commit
210589b737
  1. 1
      Dockerfile
  2. 2
      httpd-foreground

1
Dockerfile

@ -28,6 +28,7 @@ RUN chmod u+x /usr/local/bin/httpd-foreground @@ -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

2
httpd-foreground

@ -2,6 +2,6 @@ @@ -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 "$@"
Loading…
Cancel
Save