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
This commit is contained in:
Marcin Juszkiewicz 2019-05-23 13:55:51 +02:00
parent b55fa2f8b7
commit fcceb51963
2 changed files with 2 additions and 0 deletions

View File

@ -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*

View File

@ -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*