summaryrefslogtreecommitdiff
path: root/docker/base
diff options
context:
space:
mode:
authorMichal Nasiadka <mnasiadka@gmail.com>2023-03-06 18:27:46 +0100
committerMaksim Malchuk <maksim.malchuk@gmail.com>2023-04-21 18:23:37 +0300
commit003fff5dc1cc94bd8da0fd032e353ddafd0f233a (patch)
treeadaafd64b99f7fe78c323305cb940d872a4c45e5 /docker/base
parent6d1efb092c654650eb2420058ea4d81e7ccc8e68 (diff)
downloadkolla-003fff5dc1cc94bd8da0fd032e353ddafd0f233a.tar.gz
kolla-003fff5dc1cc94bd8da0fd032e353ddafd0f233a.zip
https: remove dhparams.pem before running gencerts
On EL9 the file exists and script errors with wrong permissions to it. Closes-Bug: #2011716 Change-Id: Ib32baa3208e6bfc5520ff8537193c9a4d6cbada7 (cherry picked from commit 12d431e3994023ce735a2352554a99a5cc9431c9)
Diffstat (limited to 'docker/base')
-rw-r--r--docker/base/httpd_setup.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/docker/base/httpd_setup.sh b/docker/base/httpd_setup.sh
index 3dbf84853..5232f4ed1 100644
--- a/docker/base/httpd_setup.sh
+++ b/docker/base/httpd_setup.sh
@@ -24,7 +24,9 @@ if [[ "$(whoami)" == 'root' ]]; then
# on startup:
# SSLCertificateFile: file '/etc/pki/tls/certs/localhost.crt' does not exist or is empty
# Work around this by generating certificates manually.
+ # NOTE(mnasiadka): in EL9 upgrade jobs gencerts is failing on wrong permissions to dhparams.pem
if [[ "${KOLLA_BASE_DISTRO}" =~ centos|rocky ]] && [[ ! -e /etc/pki/tls/certs/localhost.crt ]]; then
+ rm -f /tmp/dhparams.pem
/usr/libexec/httpd-ssl-gencerts
fi
fi