mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-13 21:34:40 +03:00
[etcd] fix make-ssl-etcd.sh.j2; move pem files only if any new certs exist (#9974)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user