From d6f2dbc723820cdf91955f03ded9ace596e6b7b7 Mon Sep 17 00:00:00 2001 From: elementyang Date: Sun, 24 Jun 2018 13:05:43 +0800 Subject: [PATCH] fix the time of ca files are changed in make-ssl-etcd --- roles/etcd/files/make-ssl-etcd.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/etcd/files/make-ssl-etcd.sh b/roles/etcd/files/make-ssl-etcd.sh index ebf0e2afa..d661a2a0d 100755 --- a/roles/etcd/files/make-ssl-etcd.sh +++ b/roles/etcd/files/make-ssl-etcd.sh @@ -95,4 +95,9 @@ if [ -n "$HOSTS" ]; then fi # Install certs +if [ -e "$SSLDIR/ca-key.pem" ]; then + # No pass existing CA + rm -f ca.pem ca-key.pem +fi + mv *.pem ${SSLDIR}/