From c0e03bd5ddfca2a9b8d96ef47180d33d07deb407 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Thu, 15 Nov 2018 21:46:48 +0100 Subject: [PATCH] new: [docker-host] set system timezone This is important for some docker, like ``cron``. --- docker-host/hooks/install.d/95-timezone.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 docker-host/hooks/install.d/95-timezone.sh diff --git a/docker-host/hooks/install.d/95-timezone.sh b/docker-host/hooks/install.d/95-timezone.sh new file mode 100755 index 0000000..e45e504 --- /dev/null +++ b/docker-host/hooks/install.d/95-timezone.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +set -eux + +## Timezone +TZ=${TZ:-"Europe/Paris"} + + +## +## set system time-zone +## + +printf "%s\n" "$TZ" > /etc/timezone +dpkg-reconfigure --frontend noninteractive tzdata