]> git.pld-linux.org Git - packages/tzdata.git/commitdiff
- detect missing zone file in status
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 31 Oct 2010 19:29:10 +0000 (19:29 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    timezone.init -> 1.19

timezone.init

index 17dae7bf6810ee7595a06e70f6675c6a69f97abd..19c9001967aab07a54e523ec8beca5de93fb0066 100644 (file)
@@ -79,7 +79,9 @@ case "$1" in
        ;;
   status)
        nls 'Time zone is configured to %s' "$TIMEZONE"
-       if ! identical "$ZONE_FILE" /etc/localtime; then
+       if [ ! -f "$ZONE_FILE" ]; then
+               nls "Missing %s file" "$ZONE_FILE"
+       elif ! identical "$ZONE_FILE" /etc/localtime; then
                nls 'Current time zone differs from %s!' "$TIMEZONE"
        fi
        ;;
This page took 0.136496 seconds and 4 git commands to generate.