[etcd] fix make-ssl-etcd.sh.j2; move pem files only if any new certs exist (#9974)
parent
ed6f8df784
commit
dc33a1971d
|
@ -100,4 +100,6 @@ if [ -e "$SSLDIR/ca-key.pem" ]; then
|
||||||
rm -f ca.pem ca-key.pem
|
rm -f ca.pem ca-key.pem
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mv *.pem ${SSLDIR}/
|
if [ -n "$(ls -A *.pem)" ]; then
|
||||||
|
mv *.pem ${SSLDIR}/
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in New Issue