diff options
author | Colin Watson <cjwatson@debian.org> | 2013-05-22 00:41:15 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2013-05-22 00:41:15 +0100 |
commit | 243c99ff0d74d4bf4bcf8ca6dea95286bdda2c0a (patch) | |
tree | 06803bf82d716a66cff54331ac506044a149c0a5 /debian/openssh-server.postinst.in | |
parent | 201b985b6442b39c14a0d97decf626af1100b31b (diff) |
Add #DEBHELPER# tokens to openssh-client.postinst and
openssh-server.postinst.
Diffstat (limited to 'debian/openssh-server.postinst.in')
-rw-r--r-- | debian/openssh-server.postinst.in | 50 |
1 files changed, 24 insertions, 26 deletions
diff --git a/debian/openssh-server.postinst.in b/debian/openssh-server.postinst.in index 245333234..a91ec082a 100644 --- a/debian/openssh-server.postinst.in +++ b/debian/openssh-server.postinst.in | |||
@@ -8,11 +8,6 @@ db_version 2.0 | |||
8 | 8 | ||
9 | umask 022 | 9 | umask 022 |
10 | 10 | ||
11 | if [ "$action" != configure ] | ||
12 | then | ||
13 | exit 0 | ||
14 | fi | ||
15 | |||
16 | 11 | ||
17 | get_config_option() { | 12 | get_config_option() { |
18 | option="$1" | 13 | option="$1" |
@@ -339,29 +334,32 @@ commit_mv_conffile () { | |||
339 | } | 334 | } |
340 | 335 | ||
341 | 336 | ||
342 | create_sshdconfig | 337 | if [ "$action" = configure ]; then |
343 | create_keys | 338 | create_sshdconfig |
344 | vulnerable_host_keys | 339 | create_keys |
345 | fix_statoverride | 340 | vulnerable_host_keys |
346 | setup_sshd_user | 341 | fix_statoverride |
347 | if dpkg --compare-versions "$2" lt 1:5.2p1-1; then | 342 | setup_sshd_user |
348 | remove_old_init_links | 343 | if dpkg --compare-versions "$2" lt 1:5.2p1-1; then |
349 | fi | 344 | remove_old_init_links |
350 | setup_init | 345 | fi |
351 | commit_mv_conffile /etc/pam.d/ssh /etc/pam.d/sshd | 346 | setup_init |
352 | # Renamed to /etc/ssh/moduli in 2.9.9 (!) | 347 | commit_mv_conffile /etc/pam.d/ssh /etc/pam.d/sshd |
353 | if dpkg --compare-versions "$2" lt 1:4.7p1-1; then | 348 | # Renamed to /etc/ssh/moduli in 2.9.9 (!) |
354 | rm -f /etc/ssh/primes | 349 | if dpkg --compare-versions "$2" lt 1:4.7p1-1; then |
355 | fi | 350 | rm -f /etc/ssh/primes |
356 | if dpkg --compare-versions "$2" lt 1:5.5p1-6; then | 351 | fi |
357 | rm -f /var/run/sshd/.placeholder | 352 | if dpkg --compare-versions "$2" lt 1:5.5p1-6; then |
358 | fi | 353 | rm -f /var/run/sshd/.placeholder |
354 | fi | ||
359 | 355 | ||
360 | # Clean up old debconf templates. | 356 | # Clean up old debconf templates. |
361 | db_unregister ssh/use_old_init_script | 357 | db_unregister ssh/use_old_init_script |
362 | db_unregister ssh/encrypted_host_key_but_no_keygen | 358 | db_unregister ssh/encrypted_host_key_but_no_keygen |
363 | db_unregister ssh/disable_cr_auth | 359 | db_unregister ssh/disable_cr_auth |
360 | fi | ||
364 | 361 | ||
362 | #DEBHELPER# | ||
365 | 363 | ||
366 | db_stop | 364 | db_stop |
367 | 365 | ||