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

This commit is contained in:
Kei Kori
2023-04-13 13:52:35 +09:00
committed by GitHub
parent ed6f8df784
commit dc33a1971d

View File

@ -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