#!/bin/bash
source /root/envsetup/conf.sh

set -e

NTP_SERVER="$NTP_SERVER1"
if [ "${NTP_SERVER}" = "" ]; then
    NTP_SERVER="ntp.ubuntu.com"
fi
echo "Testing NTP server: ${NTP_SERVER}"
service ntp stop
ntpdate -d ${NTP_SERVER} >/dev/null
service ntp restart
