]> git.pld-linux.org Git - packages/tzdata.git/commitdiff
- remove /etc/localtime only if we have chance to succeed
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 25 Feb 2007 00:37:45 +0000 (00:37 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    timezone.init -> 1.4

timezone.init

index fff84bc5e64a6c7fbf812a3435678e08df7b9f11..72d2b67e1d0e3116beb2dc1ff3d35ba3909dd63f 100644 (file)
@@ -29,8 +29,9 @@ ZONE_FILE="$ZONE_FILE/$TIME_ZONE"
 
 start() {
        if [ ! -f /var/lock/subsys/timezone ]; then
-               rm -f /etc/localtime
                if [ -f "$ZONE_FILE" ]; then
+                       rm -f /etc/localtime
+
                        if [ -n "$ZONE_INFO_AREA" ]; then
                                MESSAGE="`nls 'Setting time zone information (%s, %s)' "$ZONE_INFO_AREA" "$TIME_ZONE"`"
                        else
This page took 0.104682 seconds and 4 git commands to generate.