From a398250afa46e85af454452a7b49e1d3e26ec240 Mon Sep 17 00:00:00 2001
From: ale <ale@incal.net>
Date: Mon, 27 Nov 2023 09:47:27 +0000
Subject: [PATCH] Create /run/apache2/socks to make apache2ctl work

---
 conf/cont-init.d/02run-apache2 | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/conf/cont-init.d/02run-apache2 b/conf/cont-init.d/02run-apache2
index 337234f..eef5f4f 100755
--- a/conf/cont-init.d/02run-apache2
+++ b/conf/cont-init.d/02run-apache2
@@ -1,5 +1,7 @@
 #!/bin/sh
 
-mkdir -p /run/apache2
+# Create the APACHE_RUN_DIR. Create the 'socks' subdirectory too, otherwise
+# apache2ctl will attempt to run a chown on it and fail.
+mkdir -p /run/apache2 /run/apache2/socks
 
 exit 0
-- 
GitLab