https: remove dhparams.pem before running gencerts
On EL9 the file exists and script errors with wrong permissions to it. Change-Id: Ib32baa3208e6bfc5520ff8537193c9a4d6cbada7
This commit is contained in:
parent
9438509e9d
commit
12d431e399
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user