aboutsummaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <marcin@juszkiewicz.com.pl>2019-05-23 13:55:51 +0200
committerMarcin Juszkiewicz <marcin@juszkiewicz.com.pl>2019-05-23 15:44:18 +0200
commitfcceb51963110e7280bf090c4194031b42e54123 (patch)
tree00ccbdfd24a60fdc738f89a8829f24d6d5e11fc5 /docker
parentb55fa2f8b70b143068db57fc1ff844929d29486e (diff)
downloadkolla-fcceb51963110e7280bf090c4194031b42e54123.tar.gz
kolla-fcceb51963110e7280bf090c4194031b42e54123.zip
create missing apache2 directory on Debian/Ubuntu
Ubuntu/source deployment of horizon and placement-api failed: + exec /usr/sbin/apache2 -DFOREGROUND apache2: Syntax error on line 80 of /etc/apache2/apache2.conf: DefaultRuntimeDir must be a valid directory, absolute or relative to ServerRoot Once directory is in place it works fine. Change-Id: Icbd500e5b16deb0eafc0821a1c117794ddb8ae62
Diffstat (limited to 'docker')
-rw-r--r--docker/horizon/extend_start.sh1
-rw-r--r--docker/placement/placement-api/extend_start.sh1
2 files changed, 2 insertions, 0 deletions
diff --git a/docker/horizon/extend_start.sh b/docker/horizon/extend_start.sh
index 7006fafd5..f67030b6b 100644
--- a/docker/horizon/extend_start.sh
+++ b/docker/horizon/extend_start.sh
@@ -340,6 +340,7 @@ config_zun_dashboard
if [[ "${KOLLA_BASE_DISTRO}" =~ debian|ubuntu ]]; then
# Loading Apache2 ENV variables
. /etc/apache2/envvars
+ install -d /var/run/apache2/
rm -rf /var/run/apache2/*
else
rm -rf /var/run/httpd/* /run/httpd/* /tmp/httpd*
diff --git a/docker/placement/placement-api/extend_start.sh b/docker/placement/placement-api/extend_start.sh
index 65a2ca0e5..d91b8265c 100644
--- a/docker/placement/placement-api/extend_start.sh
+++ b/docker/placement/placement-api/extend_start.sh
@@ -25,6 +25,7 @@ fi
if [[ "${KOLLA_BASE_DISTRO}" =~ debian|ubuntu ]]; then
# Loading Apache2 ENV variables
. /etc/apache2/envvars
+ install -d /var/run/apache2/
rm -rf /var/run/apache2/*
else
rm -rf /var/run/httpd/* /run/httpd/* /tmp/httpd*