mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-2492: enable time sync on vmware if ntp is not installed
This commit is contained in:
parent
c7ebcb4e8c
commit
2fdeee4de7
|
|
@ -432,6 +432,12 @@ setup_common() {
|
|||
ping -n -c 3 $MGMT_GW &
|
||||
sleep 3
|
||||
pkill ping
|
||||
|
||||
fi
|
||||
|
||||
local hyp=$(hypervisor)
|
||||
if [ "$hyp" == "vmware" ]; then
|
||||
ntpq -p &> /dev/null || vmware-toolbox-cmd timesync enable
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue