Modification : vm_hosted -> etc/sv/*/configure.sh .
[lhc/ateliers.git] / etc / sv / ntp / configure.sh
diff --git a/etc/sv/ntp/configure.sh b/etc/sv/ntp/configure.sh
new file mode 100644 (file)
index 0000000..8e2cc1a
--- /dev/null
@@ -0,0 +1,13 @@
+# NOTE: http://my.opera.com/marcomarongiu/blog/2011/01/05/independent-wallclock-in-xen-4
+
+rule apt_get_install ntp
+rule insserv_remove  ntp
+
+sudo install -m 644 -o root -g root /dev/stdin /etc/timezone <<-EOF
+       Europe/Paris
+       EOF
+sudo debconf-set-selections <<-EOF
+       tzdata  tzdata/Areas    select  Europe
+       tzdata  tzdata/Zones/Europe     select  Paris
+       EOF
+rule dpkg_reconfigure tzdata