summaryrefslogtreecommitdiff
path: root/debian/openssh-client.postrm
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2013-05-21 23:41:23 +0100
committerColin Watson <cjwatson@debian.org>2013-05-21 23:41:23 +0100
commit1fa04ebf122aec5ecbbdb6c7e001665b238e4c62 (patch)
tree3d228c46959931802ddcc289bd658ccda5ab4738 /debian/openssh-client.postrm
parentcc7c64fe532ac804ce6c65d701a32b614cc0b26a (diff)
Drop conffile handling for upgrades from pre-split ssh package; this was
originally added in 1:4.3p2-7 / 1:4.3p2-8, and contained a truly ghastly hack around a misbehaviour in sarge's dpkg. Since this is now four Debian releases ago, we can afford to drop this and simplify the packaging.
Diffstat (limited to 'debian/openssh-client.postrm')
-rw-r--r--debian/openssh-client.postrm13
1 files changed, 0 insertions, 13 deletions
diff --git a/debian/openssh-client.postrm b/debian/openssh-client.postrm
index eb6fde06b..2b29a098b 100644
--- a/debian/openssh-client.postrm
+++ b/debian/openssh-client.postrm
@@ -2,20 +2,7 @@
2 2
3#DEBHELPER# 3#DEBHELPER#
4 4
5abort_transfer_conffile () {
6 CONFFILE="$1"
7 if [ -e "$CONFFILE.moved-by-preinst" ]; then
8 echo >&2 "Aborting ownership transfer of conffile $CONFFILE ..."
9 mv -f "$CONFFILE.moved-by-preinst" "$CONFFILE"
10 return 0
11 fi
12}
13
14case $1 in 5case $1 in
15 abort-install|abort-upgrade)
16 abort_transfer_conffile /etc/ssh/moduli
17 abort_transfer_conffile /etc/ssh/ssh_config
18 ;;
19 purge) 6 purge)
20 # Remove all non-conffiles that ssh might create, so that we 7 # Remove all non-conffiles that ssh might create, so that we
21 # can smoothly remove /etc/ssh if and only if the user 8 # can smoothly remove /etc/ssh if and only if the user