[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[tzdata] 01/02: Change /etc/timezone into a symlink (closes: #803144)



This is an automated email from the git hooks/post-receive script.

aurel32 pushed a commit to branch sid
in repository tzdata.

commit eef8f67bcfa5adbb87f2b540b5a6dabc25d4d76a
Author: Aurelien Jarno <aurelien@aurel32.net>
Date:   Fri Jan 29 17:14:19 2016 +0100

    Change /etc/timezone into a symlink (closes: #803144)
---
 debian/changelog       | 1 +
 debian/tzdata.postinst | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 4bea4a8..fadc938 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,7 @@ tzdata (2016a-1) UNRELEASED; urgency=medium
     - America/Cayman
     - Asia/Chita
     - Asia Tehran
+  * Change /etc/timezone into a symlink (closes: #803144)
 
  -- Aurelien Jarno <aurel32@debian.org>  Thu, 21 Jan 2016 23:52:23 +0100
 
diff --git a/debian/tzdata.postinst b/debian/tzdata.postinst
index 0e5039f..7489ffe 100644
--- a/debian/tzdata.postinst
+++ b/debian/tzdata.postinst
@@ -27,7 +27,7 @@ if [ "$1" = configure ]; then
     
         # Update the time zone
         echo $AREA/$ZONE > /etc/timezone
-	cp -f /usr/share/zoneinfo/$AREA/$ZONE /etc/localtime.dpkg-new && \
+	ln -nsf /usr/share/zoneinfo/$AREA/$ZONE /etc/localtime.dpkg-new && \
 	    mv -f /etc/localtime.dpkg-new /etc/localtime
 	which restorecon >/dev/null 2>&1 && restorecon /etc/localtime
     

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-glibc/tzdata.git


Reply to: