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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
1 deletions
-
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 |