diskimage-builder/elements/nova-vm/first-boot.d/10-ntp

12 lines
215 B
Text
Raw Normal View History

2012-11-13 00:49:27 +00:00
#!/bin/bash
ntpfile=`mktemp`
cat << EOF > $ntpfile
server ntp.ubuntu.com iburst
server 127.127.1.0
fudge 127.127.1.0 stratum 10
EOF
mv /etc/ntp.conf /etc/ntp.conf.orig
mv $ntpfile /etc/ntp.conf
service ntp restart