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

pull/9986/head
Kei Kori 2023-04-13 13:52:35 +09:00 committed by GitHub
parent ed6f8df784
commit dc33a1971d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

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