Commit be9c8ed8 authored by Simon F's avatar Simon F Committed by Kaarle Ritvanen
Browse files

main/apache2: Create /run folder for apache2 on install

The directory /run/apache2 is only created when running in openrc (see
apache2.initd). When installing on a non-openrc system (e.g. docker),
this folder is missing and apache2 refuses to start.

Closes https://bugs.alpinelinux.org/issues/9982
parent eb3ede8d
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
pkgname=apache2 pkgname=apache2
_pkgreal=httpd _pkgreal=httpd
pkgver=2.4.38 pkgver=2.4.38
pkgrel=1 pkgrel=2
pkgdesc="A high performance Unix-based HTTP server" pkgdesc="A high performance Unix-based HTTP server"
url="https://httpd.apache.org/" url="https://httpd.apache.org/"
arch="all" arch="all"
...@@ -172,6 +172,10 @@ package() { ...@@ -172,6 +172,10 @@ package() {
error "$i MPM was not built" error "$i MPM was not built"
fi fi
done done
# create the run directory
# ref #9982
mkdir -p "$pkgdir"/run/apache2
} }
_make_conf_dir() { _make_conf_dir() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment