aboutsummaryrefslogtreecommitdiff
path: root/docker/base/httpd_setup.sh
diff options
context:
space:
mode:
authorMichal Nasiadka <mnasiadka@gmail.com>2022-09-27 10:18:01 +0000
committerMichal Nasiadka <mnasiadka@gmail.com>2022-09-30 14:17:34 +0000
commit0883532434fff341c444d8fce8e28fcff3f5e769 (patch)
tree7f1f75d1db104fb73451f086f7d0fd8b49c5bab1 /docker/base/httpd_setup.sh
parent237013960425e4ff6cbc4814d4f9d61efcf601de (diff)
downloadkolla-0883532434fff341c444d8fce8e28fcff3f5e769.tar.gz
kolla-0883532434fff341c444d8fce8e28fcff3f5e769.zip
Add RockyLinux 9 support
Depends-On: https://review.opendev.org/c/openstack/kolla-ansible/+/859570 Change-Id: I7af51d07b8a939c908aa072294061def57dd67de
Diffstat (limited to 'docker/base/httpd_setup.sh')
-rw-r--r--docker/base/httpd_setup.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/docker/base/httpd_setup.sh b/docker/base/httpd_setup.sh
index fe627652b..3dbf84853 100644
--- a/docker/base/httpd_setup.sh
+++ b/docker/base/httpd_setup.sh
@@ -19,12 +19,12 @@ if [[ "$(whoami)" == 'root' ]]; then
rm -rf /var/run/httpd/* /run/httpd/* /tmp/httpd*
fi
- # CentOS 8 has an issue with mod_ssl which produces an invalid Apache
+ # CentOS/Rocky have an issue with mod_ssl which produces an invalid Apache
# configuration in /etc/httpd/conf.d/ssl.conf. This causes the following error
# on startup:
# SSLCertificateFile: file '/etc/pki/tls/certs/localhost.crt' does not exist or is empty
# Work around this by generating certificates manually.
- if [[ ${KOLLA_BASE_DISTRO} = centos ]] && [[ ! -e /etc/pki/tls/certs/localhost.crt ]]; then
+ if [[ "${KOLLA_BASE_DISTRO}" =~ centos|rocky ]] && [[ ! -e /etc/pki/tls/certs/localhost.crt ]]; then
/usr/libexec/httpd-ssl-gencerts
fi
fi