diff options
Diffstat (limited to 'debian/openssh-server.postinst')
-rw-r--r-- | debian/openssh-server.postinst | 10 |
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 | ||
335 | commit_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 | ||
336 | fix_doc_symlink | 343 | fix_doc_symlink |
337 | create_sshdconfig | 344 | create_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 |
347 | fi | 354 | fi |
348 | setup_init | 355 | setup_init |
356 | commit_transfer_conffile /etc/default/ssh | ||
357 | commit_transfer_conffile /etc/init.d/ssh | ||
358 | commit_transfer_conffile /etc/pam.d/ssh | ||
349 | 359 | ||
350 | 360 | ||
351 | db_stop | 361 | db_stop |