Use timedatectl to set timezone under systemd auto/th/tzdata-2015d-2
authorJacek Konieczny <j.konieczny@eggsoft.pl>
Thu, 9 Jul 2015 12:27:15 +0000 (14:27 +0200)
committerJacek Konieczny <j.konieczny@eggsoft.pl>
Thu, 9 Jul 2015 12:27:15 +0000 (14:27 +0200)
Release: 2

timezone.sh
tzdata.spec

index 225a486ff95035a9354060bf19b2ba40ad5f3f90..637f4565611b03401e6edc5e48de848c5dd65944 100755 (executable)
@@ -1,5 +1,11 @@
 #!/bin/sh
 
+if [ -x /usr/bin/timedatectl ] && \
+    [ -z "$ZONE_INFO_DIR" -o "$ZONE_INFO_DIR" = "/usr/share/zoneinfo" ] && \
+    [ -z "$ZONE_INFO_SCHEME" -o "$ZONE_INFO_SCHEME" = "posix" ] ; then
+       exec /usr/bin/timedatectl set-timezone "$TIMEZONE"
+fi
+
 ZONE_FILE="$ZONE_INFO_DIR"
 
 if [ -n "$ZONE_INFO_SCHEME" -a "$ZONE_INFO_SCHEME" != "posix" ]; then
index ee436cbe68358e2e1dbd5c857120742925ff2290..bd59a41093f203b281690e7c101644127d3cdcad 100644 (file)
@@ -15,7 +15,7 @@ Summary:      Timezone data
 Summary(pl.UTF-8):     Dane o strefach czasowych
 Name:          tzdata
 Version:       %{tzdata_ver}
-Release:       1
+Release:       2
 License:       Public Domain (database), BSD/LGPL v2.1+ (code/test suite)
 Group:         Base
 # The tzdata-base-0.tar.bz2 is a simple building infrastructure and
This page took 0.05983 seconds and 4 git commands to generate.