diff options
author | Colin Watson <cjwatson@debian.org> | 2013-05-22 00:59:33 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2013-05-22 00:59:33 +0100 |
commit | afd3292952a9f0bb107046785ddcfad446d69b89 (patch) | |
tree | 9894061066d4a1804faecd731b2899bbd924b63e /debian/openssh-server.postinst.in | |
parent | 6f4754f269cb99609cc27d358873bcbdb574cfd6 (diff) |
Replace old manual conffile handling code with dpkg-maintscript-helper,
via dh_installdeb.
Diffstat (limited to 'debian/openssh-server.postinst.in')
-rw-r--r-- | debian/openssh-server.postinst.in | 15 |
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 | ||
323 | commit_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 | |||
337 | if [ "$action" = configure ]; then | 323 | if [ "$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 |