apache: create log directory o=
authorSebastian Kemper <sebastian_ml@gmx.net>
Sat, 16 May 2020 12:24:03 +0000 (14:24 +0200)
committerSebastian Kemper <sebastian_ml@gmx.net>
Sat, 16 May 2020 12:24:05 +0000 (14:24 +0200)
Hides away the contents of the log directory from others.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
net/apache/files/apache2.init

index a0136c84119177b37a144f172bdbd8d232ddc553..df2e2646e199104aa78d3ce28ce5aa5774c4e7f2 100644 (file)
@@ -11,7 +11,8 @@ restart() {
 }
 
 start() {
-       mkdir -p /var/log/apache2 /var/run/apache2
+       mkdir -p -m 0750 /var/log/apache2
+       mkdir -p /var/run/apache2
        apachectl -k start
 }