Browse Source

[etcd] fix make-ssl-etcd.sh.j2; move pem files only if any new certs exist (#9974)

pull/9986/head
Kei Kori 1 year ago
committed by GitHub
parent
commit
dc33a1971d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions
  1. 4
      roles/etcd/templates/make-ssl-etcd.sh.j2

4
roles/etcd/templates/make-ssl-etcd.sh.j2

@ -100,4 +100,6 @@ if [ -e "$SSLDIR/ca-key.pem" ]; then
rm -f ca.pem ca-key.pem
fi
mv *.pem ${SSLDIR}/
if [ -n "$(ls -A *.pem)" ]; then
mv *.pem ${SSLDIR}/
fi
Loading…
Cancel
Save