summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--adei/Dockerfile2
-rwxr-xr-xadei/scripts/run-apache.sh2
2 files changed, 3 insertions, 1 deletions
diff --git a/adei/Dockerfile b/adei/Dockerfile
index 3556644..e0ee4ad 100644
--- a/adei/Dockerfile
+++ b/adei/Dockerfile
@@ -44,6 +44,8 @@ RUN ln -sf /etc/mime.types /etc/apache2/mime.types && \
chmod -R +r /etc/apache2 && \
chmod a+w /etc/apache2/listen.conf && \
chmod a+w /etc/apache2/server-tuning.conf && \
+ mkdir -p /etc/apache2/sysconfig.d && \
+ chmod a+rwx /etc/apache2/sysconfig.d && \
sed -i'' -re 's@/var/run@/tmp@' /usr/sbin/start_apache2 && \
chmod +x /usr/sbin/start_apache2
diff --git a/adei/scripts/run-apache.sh b/adei/scripts/run-apache.sh
index 159a265..202df62 100755
--- a/adei/scripts/run-apache.sh
+++ b/adei/scripts/run-apache.sh
@@ -57,7 +57,7 @@ if [ -n "$APACHE_SERVERS" -a "$APACHE_SERVERS" -ne 0 ]; then
max_spare=0
fi
[ $start -eq 0 ] || ised -re "s/StartServers(.*)/StartServers $start/" /etc/apache2/server-tuning.conf
- [ $limit -eq 0 ] || isedt -re "s/MaxClients(.*)/MaxClients $limit/" /etc/apache2/server-tuning.conf
+ [ $limit -eq 0 ] || ised -re "s/MaxClients(.*)/MaxClients $limit/" /etc/apache2/server-tuning.conf
[ $min_spare -eq 0 ] || ised -re "s/MinSpareServers(.*)/MinSpareServers $min_spare/" /etc/apache2/server-tuning.conf
[ $max_spare -eq 0 ] || ised -re "s/MaxSpareServers(.*)/MaxSpareServers $max_spare/" /etc/apache2/server-tuning.conf
fi