From 53ec27cd7a6e68124249a7f8c3c432d744ca9218 Mon Sep 17 00:00:00 2001 From: Rohit Yadav Date: Wed, 16 Jan 2019 21:48:57 +0530 Subject: [PATCH] scripts: don't restart systemvm cloud.service post cert import (#3134) This ensures that the systemvm agent (cloud.service) is not restarted on certificate import. The agent has an inbuilt logic to attempt reconnection. If the old certificates/keystore is invalid agent will attempt reconnection. Signed-off-by: Rohit Yadav --- scripts/util/keystore-cert-import | 5 ----- 1 file changed, 5 deletions(-) diff --git a/scripts/util/keystore-cert-import b/scripts/util/keystore-cert-import index 96196d93902..424ab4a718e 100755 --- a/scripts/util/keystore-cert-import +++ b/scripts/util/keystore-cert-import @@ -100,11 +100,6 @@ if [ -f "$SYSTEM_FILE" ]; then update-ca-certificates > /dev/null 2>&1 || true fi -# Restart cloud service if we're in systemvm -if [ "$MODE" == "ssh" ] && [ -f $SYSTEM_FILE ]; then - systemctl restart cloud > /dev/null 2>&1 -fi - # Fix file permission chmod 600 $CACERT_FILE chmod 600 $CERT_FILE