Skip to content

Commit 53ec27c

Browse files
authored
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 <rohit.yadav@shapeblue.com>
1 parent e56c499 commit 53ec27c

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

scripts/util/keystore-cert-import

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,6 @@ if [ -f "$SYSTEM_FILE" ]; then
100100
update-ca-certificates > /dev/null 2>&1 || true
101101
fi
102102

103-
# Restart cloud service if we're in systemvm
104-
if [ "$MODE" == "ssh" ] && [ -f $SYSTEM_FILE ]; then
105-
systemctl restart cloud > /dev/null 2>&1
106-
fi
107-
108103
# Fix file permission
109104
chmod 600 $CACERT_FILE
110105
chmod 600 $CERT_FILE

0 commit comments

Comments
 (0)