]> err.no Git - systemd/commitdiff
Run the local time migration on new install, too
authorMichael Biebl <biebl@debian.org>
Wed, 3 Aug 2011 13:38:02 +0000 (15:38 +0200)
committerTollef Fog Heen <tfheen@err.no>
Wed, 14 Sep 2011 06:38:00 +0000 (08:38 +0200)
debian/systemd.postinst

index 27659711da622e0f05b894dc8debdba575713830..db76a6bc102165923302aecac3380d11e4b4fe34 100644 (file)
@@ -16,12 +16,13 @@ if [ -n "$2" ]; then
             rmdir --ignore-fail-on-non-empty /cgroup
         fi
     fi
-    # Do a one-time migration of the local time setting
-    if dpkg --compare-versions "$2" lt "33-1"; then
-        . /etc/default/rcS
-        if [ $UTC ="no" ] && [ ! -e /etc/adjtime ]; then
-            echo "0.0 0 0.0\n0\nLOCAL" > /etc/adjtime
-        fi
+fi
+
+# Do a one-time migration of the local time setting
+if dpkg --compare-versions "$2" lt "33-1"; then
+    . /etc/default/rcS
+    if [ $UTC ="no" ] && [ ! -e /etc/adjtime ]; then
+        echo "0.0 0 0.0\n0\nLOCAL" > /etc/adjtime
     fi
 fi