diff options
author | Colin Watson <cjwatson@debian.org> | 2013-05-22 00:22:16 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2013-05-22 00:22:16 +0100 |
commit | 66226af6929845dbe14a477e87237950a690b918 (patch) | |
tree | 28aa0c9a8fb168e1e500183945a5a27dc5abd8bc /debian/openssh-server.config | |
parent | 8b32ca7b77bf39b2386d5abf0e2c73411c630f63 (diff) |
Remove lots of maintainer script support for upgrades from pre-etch
(three releases before current stable).
Diffstat (limited to 'debian/openssh-server.config')
-rw-r--r-- | debian/openssh-server.config | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/debian/openssh-server.config b/debian/openssh-server.config deleted file mode 100644 index 3cbcf6ea6..000000000 --- a/debian/openssh-server.config +++ /dev/null | |||
@@ -1,41 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | action=$1 | ||
4 | version=$2 | ||
5 | |||
6 | # Source debconf library. | ||
7 | . /usr/share/debconf/confmodule | ||
8 | db_version 2.0 | ||
9 | |||
10 | |||
11 | get_config_option() { | ||
12 | option="$1" | ||
13 | |||
14 | [ -f /etc/ssh/sshd_config ] || return | ||
15 | |||
16 | # TODO: actually only one '=' allowed after option | ||
17 | perl -ne 'print if s/^[[:space:]]*'"$option"'[[:space:]=]+//i' \ | ||
18 | /etc/ssh/sshd_config 2>/dev/null | ||
19 | } | ||
20 | |||
21 | |||
22 | if [ -e /etc/ssh/sshd_config ] | ||
23 | then | ||
24 | # An empty version means we're upgrading from before the package split, | ||
25 | # so check. | ||
26 | if dpkg --compare-versions "$version" lt 1:3.8.1p1-11 | ||
27 | then | ||
28 | passwordauth="$(get_config_option PasswordAuthentication)" | ||
29 | crauth="$(get_config_option ChallengeResponseAuthentication)" | ||
30 | if [ "$passwordauth" = no ] && \ | ||
31 | ([ -z "$crauth" ] || [ "$crauth" = yes ]) | ||
32 | then | ||
33 | db_input critical ssh/disable_cr_auth || true | ||
34 | fi | ||
35 | fi | ||
36 | fi | ||
37 | |||
38 | |||
39 | db_go | ||
40 | |||
41 | exit 0 | ||