diff options
author | Colin Watson <cjwatson@debian.org> | 2008-02-08 00:29:23 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2008-02-08 00:29:23 +0000 |
commit | 0cf35bd0df53b4e540a8b8525b5519f55737c327 (patch) | |
tree | 7acacb094349ccaab2e79445c2f033b8ee6fe0e2 /debian/openssh-server.postinst | |
parent | 74cc48e9516ec9b6fe9d77cc5cc833552d3a7e8d (diff) |
* Move /etc/pam.d/ssh to /etc/pam.d/sshd, allowing us to stop defining
SSHD_PAM_SERVICE (closes: #255870).
Diffstat (limited to 'debian/openssh-server.postinst')
-rw-r--r-- | debian/openssh-server.postinst | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/debian/openssh-server.postinst b/debian/openssh-server.postinst index 61d34d281..ed7590c87 100644 --- a/debian/openssh-server.postinst +++ b/debian/openssh-server.postinst | |||
@@ -372,6 +372,19 @@ commit_transfer_conffile () { | |||
372 | fi | 372 | fi |
373 | } | 373 | } |
374 | 374 | ||
375 | commit_mv_conffile () { | ||
376 | OLDCONFFILE="$1" | ||
377 | NEWCONFFILE="$2" | ||
378 | |||
379 | if [ -e "$OLDCONFFILE.moving" ]; then | ||
380 | echo "Preserving user changes to $NEWCONFFILE ..." | ||
381 | mv -f "$NEWCONFFILE" "$NEWCONFFILE.dpkg-new" | ||
382 | mv -f "$OLDCONFFILE.moving" "$NEWCONFFILE" | ||
383 | elif [ -e "$OLDCONFFILE.dpkg-old" ]; then | ||
384 | rm -f "$OLDCONFFILE.dpkg-old" | ||
385 | fi | ||
386 | } | ||
387 | |||
375 | 388 | ||
376 | fix_doc_symlink | 389 | fix_doc_symlink |
377 | create_sshdconfig | 390 | create_sshdconfig |
@@ -392,6 +405,7 @@ setup_init | |||
392 | commit_transfer_conffile /etc/default/ssh | 405 | commit_transfer_conffile /etc/default/ssh |
393 | commit_transfer_conffile /etc/init.d/ssh | 406 | commit_transfer_conffile /etc/init.d/ssh |
394 | commit_transfer_conffile /etc/pam.d/ssh | 407 | commit_transfer_conffile /etc/pam.d/ssh |
408 | commit_mv_conffile /etc/pam.d/ssh /etc/pam.d/sshd | ||
395 | # Renamed to /etc/ssh/moduli in 2.9.9 (!) | 409 | # Renamed to /etc/ssh/moduli in 2.9.9 (!) |
396 | if dpkg --compare-versions "$2" lt 1:4.7p1-1; then | 410 | if dpkg --compare-versions "$2" lt 1:4.7p1-1; then |
397 | rm -f /etc/ssh/primes | 411 | rm -f /etc/ssh/primes |