summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Bex <peter@more-magic.net>2016-03-05 11:46:38 +0100
committerPeter Bex <peter@more-magic.net>2016-03-05 11:46:38 +0100
commit05c060932cd7409323838051c84424e617564a2f (patch)
tree161a26ae736cee19ca8c37bc2bcaa3ff89ef713c
parent6dba518d2685c977ef58187b829667e04839f98b (diff)
downloadvps-builder-05c060932cd7409323838051c84424e617564a2f.tar.gz
Reconfigure time zone after basic setup.
-rw-r--r--assets/timezone1
-rw-r--r--vps-builder.scm7
2 files changed, 7 insertions, 1 deletions
diff --git a/assets/timezone b/assets/timezone
new file mode 100644
index 0000000..644e6f1
--- /dev/null
+++ b/assets/timezone
@@ -0,0 +1 @@
+Europe/Amsterdam \ No newline at end of file
diff --git a/vps-builder.scm b/vps-builder.scm
index 1f45c3f..5b15ba6 100644
--- a/vps-builder.scm
+++ b/vps-builder.scm
@@ -199,7 +199,12 @@
(install-file root-dir "assets/network/interfaces"
"/etc/network/interfaces" "root" "root" #o644)
(install-file root-dir "assets/network/cloudstack-guest-setup"
- "/etc/dhcp/dhclient-exit-hooks.d" "root" "root" #o644))
+ "/etc/dhcp/dhclient-exit-hooks.d" "root" "root" #o644)
+
+ ;; Update timezone
+ (install-file root-dir "assets/timezone"
+ "/etc/timezone" "root" "root" #o644)
+ (run* (chroot ,root-dir "dpkg-reconfigure" "tzdata")))
(define (update-packages root-dir)
(run* (chroot ,root-dir apt-get update))