CLOUDSTACK-2492: enable time sync on vmware if ntp is not installed

This commit is contained in:
Chiradeep Vittal 2013-05-15 15:00:19 -07:00 committed by Chip Childers
parent c7ebcb4e8c
commit 2fdeee4de7
1 changed files with 6 additions and 0 deletions

View File

@ -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
}