diff options
| author | Michal Nasiadka <mnasiadka@gmail.com> | 2023-03-06 18:27:46 +0100 |
|---|---|---|
| committer | Michal Nasiadka <mnasiadka@gmail.com> | 2023-03-07 12:01:58 +0000 |
| commit | 12d431e3994023ce735a2352554a99a5cc9431c9 (patch) | |
| tree | 9152677f2bdc63f20f4c889970f614ce245529f8 /docker | |
| parent | 9438509e9d818d087ee1aad403306d6e84109017 (diff) | |
| download | kolla-12d431e3994023ce735a2352554a99a5cc9431c9.tar.gz kolla-12d431e3994023ce735a2352554a99a5cc9431c9.zip | |
https: remove dhparams.pem before running gencerts
On EL9 the file exists and script errors with wrong
permissions to it.
Change-Id: Ib32baa3208e6bfc5520ff8537193c9a4d6cbada7
Diffstat (limited to 'docker')
| -rw-r--r-- | docker/base/httpd_setup.sh | 2 |
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 |
