[Piuparts-commits] [piuparts] 03/08: exception for adduser.conf on lenny->squeeze upgrades
Holger Levsen
holger at moszumanska.debian.org
Thu Jan 15 12:47:36 UTC 2015
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch develop
in repository piuparts.
commit 7eb644169cdee5c86aaa6a5149b376531d4e2e10
Author: Andreas Beckmann <anbe at debian.org>
Date: Wed Jan 14 23:32:59 2015 +0100
exception for adduser.conf on lenny->squeeze upgrades
no adduser version after lenny does upgrade the /etc/adduser.conf
installed in lenny - so delete it and let squeeze generate a new one
Signed-off-by: Andreas Beckmann <anbe at debian.org>
---
custom-scripts/scripts/pre_distupgrade_exceptions | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/custom-scripts/scripts/pre_distupgrade_exceptions b/custom-scripts/scripts/pre_distupgrade_exceptions
index 177a8e2..08fb554 100755
--- a/custom-scripts/scripts/pre_distupgrade_exceptions
+++ b/custom-scripts/scripts/pre_distupgrade_exceptions
@@ -15,6 +15,13 @@ if [ "$PIUPARTS_DISTRIBUTION_NEXT" = "squeeze" ]; then
;;
esac
+ # squeeze does not properly upgrade adduser.conf, so generate a new one
+ if [ -f /etc/adduser.conf ]; then
+ if [ "$(md5sum /etc/adduser.conf | awk '{ print $1 }')" = "5b577c9cb18e4852fc7e45830d230ec1" ];
+ then
+ rm -fv /etc/adduser.conf
+ fi
+ fi
fi
if [ "$PIUPARTS_DISTRIBUTION_NEXT" = "wheezy" ]; then
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/piuparts/piuparts.git
More information about the Piuparts-commits
mailing list