summaryrefslogtreecommitdiff
path: root/debian/openssh-server.postinst
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2006-12-06 21:55:19 +0000
committerColin Watson <cjwatson@debian.org>2006-12-06 21:55:19 +0000
commite2f4fb43875e216cbcf7cabbb621ecb205c24857 (patch)
tree65aac6efdb62456154277787f5fdf4e718997684 /debian/openssh-server.postinst
parentd23e75730cfd617b7638e3b8013e3e1f3a1ecce9 (diff)
* 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).
Diffstat (limited to 'debian/openssh-server.postinst')
-rw-r--r--debian/openssh-server.postinst10
1 files changed, 10 insertions, 0 deletions
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() {
332 fi 332 fi
333} 333}
334 334
335commit_transfer_conffile () {
336 CONFFILE="$1"
337 if [ -e "$CONFFILE.moved-by-preinst" ]; then
338 rm -f "$CONFFILE.moved-by-preinst"
339 fi
340}
341
335 342
336fix_doc_symlink 343fix_doc_symlink
337create_sshdconfig 344create_sshdconfig
@@ -346,6 +353,9 @@ if dpkg --compare-versions "$2" lt 1:3.6.1p2-2; then
346 fix_conffile_permissions 353 fix_conffile_permissions
347fi 354fi
348setup_init 355setup_init
356commit_transfer_conffile /etc/default/ssh
357commit_transfer_conffile /etc/init.d/ssh
358commit_transfer_conffile /etc/pam.d/ssh
349 359
350 360
351db_stop 361db_stop