Ajout : vm_hosted : /etc/timezone .
authorJulien Moutinho <julm+burette@autogeree.net>
Mon, 25 Feb 2013 21:37:01 +0000 (22:37 +0100)
committerJulien Moutinho <julm+burette@autogeree.net>
Mon, 25 Feb 2013 22:36:00 +0000 (23:36 +0100)
vm_hosted

index e70708a..2e4dc08 100755 (executable)
--- a/vm_hosted
+++ b/vm_hosted
@@ -292,6 +292,13 @@ rule_initramfs_configure () {
         # NOTE: clefs générées par Debian
        sudo update-initramfs -u
  }
+rule_time_configure () {
+       sudo install -m 644 -o root -g root /dev/stdin /etc/timezone <<-EOF
+               Europe/Paris
+               EOF
+       sudo dpkg-reconfigure tzdata
+       # TODO: NTP
+ }
 rule_locale_configure () {
        sudo install -m 644 -o root -g root /dev/stdin /etc/locale.gen <<-EOF
                fr_FR.UTF-8 UTF-8
@@ -685,6 +692,7 @@ rule_configure () {
        rule git_configure
        rule etckeeper_configure
        rule locale_configure
+       rule time_configure
        rule network_configure
        rule filesystem_configure
        rule login_configure