From: Michael Biebl Date: Wed, 3 Aug 2011 13:38:02 +0000 (+0200) Subject: Run the local time migration on new install, too X-Git-Tag: 36-1~13 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc05c6ec8c947550ba8ffefb98399446ce54768d;p=systemd Run the local time migration on new install, too --- diff --git a/debian/systemd.postinst b/debian/systemd.postinst index 27659711..db76a6bc 100644 --- a/debian/systemd.postinst +++ b/debian/systemd.postinst @@ -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