diff options
-rwxr-xr-x | usr/local/sbin/ntpdate_sync_once.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/sbin/ntpdate_sync_once.sh b/usr/local/sbin/ntpdate_sync_once.sh index 508ce3e..3983578 100755 --- a/usr/local/sbin/ntpdate_sync_once.sh +++ b/usr/local/sbin/ntpdate_sync_once.sh @@ -4,7 +4,7 @@ NOTSYNCED="true" SERVER=`cat /cf/conf/config.xml | grep timeservers | cut -d">" -f2 | cut -d"<" -f1` while [ "$NOTSYNCED" = "true" ]; do - ntpdate $SERVER + ntpdate -s $SERVER if [ "$?" = "0" ]; then NOTSYNCED="false" fi |