From 024ee9f82651440b1d53bf52dcdf7d3b2af7e0da Mon Sep 17 00:00:00 2001 From: Alban VIDAL Date: Tue, 29 May 2018 00:07:53 +0200 Subject: [PATCH] Add Time Zone configuration Signed-off-by: Alban VIDAL --- README.md | 1 + auto_config.sh | 6 ++++++ parameters.conf | 3 +++ 3 files changed, 10 insertions(+) diff --git a/README.md b/README.md index 4360059..f71cb27 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ The following component are configured: + Tune .bashrc + Tune .profile + Send alert email for new ssh connexion ++ Set Time Zone (see parameters.conf to edit, default "Europe/Paris") You just need to clone this repository in `/srv/git/basic_config_debian` and execute the `auto_config.sh` script diff --git a/auto_config.sh b/auto_config.sh index 031157f..89f9a0d 100755 --- a/auto_config.sh +++ b/auto_config.sh @@ -176,3 +176,9 @@ fi # alert by email for new ssh connexion cp $GIT_DIR/etc/ssh/sshrc /etc/ssh/sshrc sed -i "s/__ALERT_EMAIL__/$SSH_EMAIL_ALERT/" /etc/ssh/sshrc + +################################################################################ + +# Time Zone configuration +# see 'parameters.conf' to edit value +busctl call org.freedesktop.timedate1 /org/freedesktop/timedate1 org.freedesktop.timedate1 SetTimezone "sb" "$TimeZone" true diff --git a/parameters.conf b/parameters.conf index c454233..3f65c65 100644 --- a/parameters.conf +++ b/parameters.conf @@ -1,2 +1,5 @@ # Do you want disable IPv6 ? DISABLE_IPv6=true + +# Time Zone +TimeZone="Europe/Paris"