From 03b52c9e7f933c6cf4fc7c655819388f17a909a6 Mon Sep 17 00:00:00 2001 From: Jonas Forsberg Date: Tue, 16 Aug 2022 15:13:53 +0200 Subject: [PATCH] added delete alias --- .functions/unifi.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/.functions/unifi.sh b/.functions/unifi.sh index 6311d62..aab3558 100644 --- a/.functions/unifi.sh +++ b/.functions/unifi.sh @@ -21,6 +21,7 @@ function unifi_update_cert(){ -inkey ${PRIV_KEY} \ -out ${P12_TEMP} -passout pass:${PASSWORD} \ -name ${ALIAS}" + kubectl -n "$NAMESPACE" exec -it "$POD" -- bash -c "keytool -delete -alias ${ALIAS} -keystore ${KEYSTORE} -deststorepass ${PASSWORD}" kubectl -n "$NAMESPACE" exec -it "$POD" -- bash -c "keytool -importkeystore \ -srckeystore ${P12_TEMP} -srcstoretype PKCS12 \ -srcstorepass ${PASSWORD} \