mirror of https://github.com/apache/cloudstack.git
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>
This commit is contained in:
parent
e56c499fb8
commit
53ec27cd7a
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue