summaryrefslogtreecommitdiff
path: root/debian/openssh-server.preinst
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2013-05-21 23:54:28 +0100
committerColin Watson <cjwatson@debian.org>2013-05-21 23:54:28 +0100
commit22307bfaab741af870b040c5704233a08f26a013 (patch)
tree5b5a882a9a473e45288300707d486c5ff56a6784 /debian/openssh-server.preinst
parent1fa04ebf122aec5ecbbdb6c7e001665b238e4c62 (diff)
Remove ssh/use_old_init_script, which was a workaround for a very old
bug in /etc/init.d/ssh. If anyone has ignored this for >10 years then they aren't going to be convinced now.
Diffstat (limited to 'debian/openssh-server.preinst')
-rw-r--r--debian/openssh-server.preinst45
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
23if [ "$action" = upgrade ] || [ "$action" = install ] 23if [ "$action" = upgrade ] || [ "$action" = install ]
24then 24then
25 # check if debconf is missing
26 if ! test -f /usr/share/debconf/confmodule
27 then
28 cat <<EOF
29
30WARNING: ssh's pre-configuration script relies on debconf to tell you
31about some problems that might prevent you from logging in if you are
32upgrading from the old, Non-free version of ssh.
33
34If this is a new installation, you don't need to worry about this.
35Just go ahead and install ssh (make sure to read .../ssh/README.Debian).
36
37If you are upgrading, but you have alternative ways of logging into
38the machine (i.e. you're sitting in front of it, or you have telnetd
39running), then you also don't need to worry too much, because you can
40fix it up afterwards if there's a problem.
41
42If you're upgrading from an older (non-free) version of ssh, and ssh
43is the only way you have to access this machine, then you should
44probably abort the installation of ssh, install debconf, and then
45retry the installation of ssh.
46
47EOF
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