diff options
Diffstat (limited to 'debian/openssh-server.preinst')
-rw-r--r-- | debian/openssh-server.preinst | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/debian/openssh-server.preinst b/debian/openssh-server.preinst index 9f3fa05ed..83fd22e59 100644 --- a/debian/openssh-server.preinst +++ b/debian/openssh-server.preinst | |||
@@ -22,51 +22,6 @@ fi | |||
22 | 22 | ||
23 | if [ "$action" = upgrade ] || [ "$action" = install ] | 23 | if [ "$action" = upgrade ] || [ "$action" = install ] |
24 | then | 24 | then |
25 | # check if debconf is missing | ||
26 | if ! test -f /usr/share/debconf/confmodule | ||
27 | then | ||
28 | cat <<EOF | ||
29 | |||
30 | WARNING: ssh's pre-configuration script relies on debconf to tell you | ||
31 | about some problems that might prevent you from logging in if you are | ||
32 | upgrading from the old, Non-free version of ssh. | ||
33 | |||
34 | If this is a new installation, you don't need to worry about this. | ||
35 | Just go ahead and install ssh (make sure to read .../ssh/README.Debian). | ||
36 | |||
37 | If you are upgrading, but you have alternative ways of logging into | ||
38 | the machine (i.e. you're sitting in front of it, or you have telnetd | ||
39 | running), then you also don't need to worry too much, because you can | ||
40 | fix it up afterwards if there's a problem. | ||
41 | |||
42 | If you're upgrading from an older (non-free) version of ssh, and ssh | ||
43 | is the only way you have to access this machine, then you should | ||
44 | probably abort the installation of ssh, install debconf, and then | ||
45 | retry the installation of ssh. | ||
46 | |||
47 | EOF | ||
48 | echo -n "Do you want to install SSH anyway [yN]: " | ||
49 | read input | ||
50 | expr "$input" : '[Yy]' >/dev/null || exit 1 | ||
51 | |||
52 | # work around for missing debconf | ||
53 | db_get() { : ; } | ||
54 | RET=true | ||
55 | if [ -d /etc/ssh-nonfree ] && [ ! -d /etc/ssh ]; then | ||
56 | cp -a /etc/ssh-nonfree /etc/ssh | ||
57 | fi | ||
58 | else | ||
59 | # Source debconf library. | ||
60 | . /usr/share/debconf/confmodule | ||
61 | db_version 2.0 | ||
62 | fi | ||
63 | |||
64 | db_get ssh/use_old_init_script | ||
65 | if [ "$RET" = "false" ]; then | ||
66 | echo "ssh config: Aborting because ssh/use_old_init_script = false" >&2 | ||
67 | exit 1 | ||
68 | fi | ||
69 | |||
70 | # deal with upgrading from pre-OpenSSH versions | 25 | # deal with upgrading from pre-OpenSSH versions |
71 | key=/etc/ssh/ssh_host_key | 26 | key=/etc/ssh/ssh_host_key |
72 | export key | 27 | export key |