From e2f4fb43875e216cbcf7cabbb621ecb205c24857 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Wed, 6 Dec 2006 21:55:19 +0000 Subject: * When installing openssh-client or openssh-server from scratch, remove any unchanged conffiles from the pre-split ssh package to work around a bug in sarge's dpkg (thanks, Justin Pryzby and others; closes: #335276). --- debian/openssh-server.postinst | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'debian/openssh-server.postinst') diff --git a/debian/openssh-server.postinst b/debian/openssh-server.postinst index 2d7dbc9ea..4e91098df 100644 --- a/debian/openssh-server.postinst +++ b/debian/openssh-server.postinst @@ -332,6 +332,13 @@ setup_init() { fi } +commit_transfer_conffile () { + CONFFILE="$1" + if [ -e "$CONFFILE.moved-by-preinst" ]; then + rm -f "$CONFFILE.moved-by-preinst" + fi +} + fix_doc_symlink create_sshdconfig @@ -346,6 +353,9 @@ if dpkg --compare-versions "$2" lt 1:3.6.1p2-2; then fix_conffile_permissions fi setup_init +commit_transfer_conffile /etc/default/ssh +commit_transfer_conffile /etc/init.d/ssh +commit_transfer_conffile /etc/pam.d/ssh db_stop -- cgit v1.2.3