commit 717b530937e7692d8aa72a450dc705383c5df34c
Author: Jacek Konieczny <[email protected]>
Date:   Thu Jul 9 14:27:15 2015 +0200

    Use timedatectl to set timezone under systemd
    
    Release: 2

 timezone.sh | 6 ++++++
 tzdata.spec | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/tzdata.spec b/tzdata.spec
index ee436cb..bd59a41 100644
--- a/tzdata.spec
+++ b/tzdata.spec
@@ -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
diff --git a/timezone.sh b/timezone.sh
index 225a486..637f456 100755
--- a/timezone.sh
+++ b/timezone.sh
@@ -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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/tzdata.git/commitdiff/717b530937e7692d8aa72a450dc705383c5df34c

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to