summaryrefslogtreecommitdiff
path: root/debian/openssh-server.postinst
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2008-02-08 00:29:23 +0000
committerColin Watson <cjwatson@debian.org>2008-02-08 00:29:23 +0000
commit0cf35bd0df53b4e540a8b8525b5519f55737c327 (patch)
tree7acacb094349ccaab2e79445c2f033b8ee6fe0e2 /debian/openssh-server.postinst
parent74cc48e9516ec9b6fe9d77cc5cc833552d3a7e8d (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.postinst14
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
375commit_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
376fix_doc_symlink 389fix_doc_symlink
377create_sshdconfig 390create_sshdconfig
@@ -392,6 +405,7 @@ setup_init
392commit_transfer_conffile /etc/default/ssh 405commit_transfer_conffile /etc/default/ssh
393commit_transfer_conffile /etc/init.d/ssh 406commit_transfer_conffile /etc/init.d/ssh
394commit_transfer_conffile /etc/pam.d/ssh 407commit_transfer_conffile /etc/pam.d/ssh
408commit_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 (!)
396if dpkg --compare-versions "$2" lt 1:4.7p1-1; then 410if dpkg --compare-versions "$2" lt 1:4.7p1-1; then
397 rm -f /etc/ssh/primes 411 rm -f /etc/ssh/primes