From fc05c6ec8c947550ba8ffefb98399446ce54768d Mon Sep 17 00:00:00 2001 From: Michael Biebl Date: Wed, 3 Aug 2011 15:38:02 +0200 Subject: [PATCH] Run the local time migration on new install, too --- debian/systemd.postinst | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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 -- 2.39.5