From be9c8ed89dc93d2236b9223dde842f5676e4dfd3 Mon Sep 17 00:00:00 2001 From: Simon Frankenberger Date: Thu, 14 Feb 2019 05:33:02 +0100 Subject: 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 --- main/apache2/APKBUILD | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'main/apache2/APKBUILD') diff --git a/main/apache2/APKBUILD b/main/apache2/APKBUILD index 45aa11766ca..45fc04f33d6 100644 --- a/main/apache2/APKBUILD +++ b/main/apache2/APKBUILD @@ -3,7 +3,7 @@ pkgname=apache2 _pkgreal=httpd pkgver=2.4.38 -pkgrel=1 +pkgrel=2 pkgdesc="A high performance Unix-based HTTP server" url="https://httpd.apache.org/" arch="all" @@ -172,6 +172,10 @@ package() { error "$i MPM was not built" fi done + + # create the run directory + # ref #9982 + mkdir -p "$pkgdir"/run/apache2 } _make_conf_dir() { -- cgit v1.2.3