Merge "Fix bad apache2 close"
This commit is contained in:
commit
637f8f9ce5
@ -1,15 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ "${KOLLA_BASE_DISTRO}" == "ubuntu" || \
|
||||
"${KOLLA_BASE_DISTRO}" == "debian" ]]; then
|
||||
# NOTE(pbourke): httpd will not clean up after itself in some cases which
|
||||
# results in the container not being able to restart. (bug #1489676, 1557036)
|
||||
if [[ "${KOLLA_BASE_DISTRO}" =~ debian|ubuntu ]]; then
|
||||
# Loading Apache2 ENV variables
|
||||
source /etc/apache2/envvars
|
||||
fi
|
||||
|
||||
# NOTE(pbourke): httpd will not clean up after itself in some cases which
|
||||
# results in the container not being able to restart. Unconfirmed if this
|
||||
# happens on Ubuntu. (bug #1489676)
|
||||
if [[ "${KOLLA_BASE_DISTRO}" =~ fedora|centos|oraclelinux|rhel ]]; then
|
||||
rm -rf /var/run/apache2/*
|
||||
else
|
||||
rm -rf /var/run/httpd/* /run/httpd/* /tmp/httpd*
|
||||
fi
|
||||
|
||||
|
@ -1,19 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ "${KOLLA_BASE_DISTRO}" == "ubuntu" || \
|
||||
"${KOLLA_BASE_DISTRO}" == "debian" ]]; then
|
||||
# NOTE(pbourke): httpd will not clean up after itself in some cases which
|
||||
# results in the container not being able to restart. (bug #1489676, 1557036)
|
||||
if [[ "${KOLLA_BASE_DISTRO}" =~ debian|ubuntu ]]; then
|
||||
# Loading Apache2 ENV variables
|
||||
source /etc/apache2/envvars
|
||||
rm -rf /var/run/apache2/*
|
||||
APACHE_DIR="apache2"
|
||||
else
|
||||
APACHE_DIR="httpd"
|
||||
fi
|
||||
|
||||
# NOTE(pbourke): httpd will not clean up after itself in some cases which
|
||||
# results in the container not being able to restart. Unconfirmed if this
|
||||
# happens on Ubuntu. (bug #1489676)
|
||||
if [[ "${KOLLA_BASE_DISTRO}" =~ fedora|centos|oraclelinux|rhel ]]; then
|
||||
rm -rf /var/run/httpd/* /run/httpd/* /tmp/httpd*
|
||||
APACHE_DIR="httpd"
|
||||
fi
|
||||
|
||||
# Create log dir for Keystone logs
|
||||
|
Loading…
Reference in New Issue
Block a user