summaryrefslogtreecommitdiff
path: root/debian/openssh-server.postinst.in
diff options
context:
space:
mode:
Diffstat (limited to 'debian/openssh-server.postinst.in')
-rw-r--r--debian/openssh-server.postinst.in15
1 files changed, 0 insertions, 15 deletions
diff --git a/debian/openssh-server.postinst.in b/debian/openssh-server.postinst.in
index a91ec082a..ce1165ac9 100644
--- a/debian/openssh-server.postinst.in
+++ b/debian/openssh-server.postinst.in
@@ -320,20 +320,6 @@ setup_init() {
320 esac 320 esac
321} 321}
322 322
323commit_mv_conffile () {
324 OLDCONFFILE="$1"
325 NEWCONFFILE="$2"
326
327 if [ -e "$OLDCONFFILE.moving" ]; then
328 echo "Preserving user changes to $NEWCONFFILE ..."
329 mv -f "$NEWCONFFILE" "$NEWCONFFILE.dpkg-new"
330 mv -f "$OLDCONFFILE.moving" "$NEWCONFFILE"
331 elif [ -e "$OLDCONFFILE.dpkg-old" ]; then
332 rm -f "$OLDCONFFILE.dpkg-old"
333 fi
334}
335
336
337if [ "$action" = configure ]; then 323if [ "$action" = configure ]; then
338 create_sshdconfig 324 create_sshdconfig
339 create_keys 325 create_keys
@@ -344,7 +330,6 @@ if [ "$action" = configure ]; then
344 remove_old_init_links 330 remove_old_init_links
345 fi 331 fi
346 setup_init 332 setup_init
347 commit_mv_conffile /etc/pam.d/ssh /etc/pam.d/sshd
348 # Renamed to /etc/ssh/moduli in 2.9.9 (!) 333 # Renamed to /etc/ssh/moduli in 2.9.9 (!)
349 if dpkg --compare-versions "$2" lt 1:4.7p1-1; then 334 if dpkg --compare-versions "$2" lt 1:4.7p1-1; then
350 rm -f /etc/ssh/primes 335 rm -f /etc/ssh/primes