diff options
Diffstat (limited to 'debian/openssh-server.postinst')
-rw-r--r-- | debian/openssh-server.postinst | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/debian/openssh-server.postinst b/debian/openssh-server.postinst index 8b554ee1e..94a47da20 100644 --- a/debian/openssh-server.postinst +++ b/debian/openssh-server.postinst | |||
@@ -128,13 +128,6 @@ if [ "$action" = configure ]; then | |||
128 | if dpkg --compare-versions "$2" lt-nl 1:5.5p1-6; then | 128 | if dpkg --compare-versions "$2" lt-nl 1:5.5p1-6; then |
129 | rm -f /run/sshd/.placeholder | 129 | rm -f /run/sshd/.placeholder |
130 | fi | 130 | fi |
131 | if dpkg --compare-versions "$2" lt-nl 1:6.2p2-3 && \ | ||
132 | which initctl >/dev/null && initctl version 2>/dev/null | grep -q upstart && \ | ||
133 | ! status ssh 2>/dev/null | grep -q ' start/'; then | ||
134 | # We must stop the sysvinit-controlled sshd before we can | ||
135 | # restart it under Upstart. | ||
136 | start-stop-daemon --stop --quiet --oknodo --pidfile /run/sshd.pid || true | ||
137 | fi | ||
138 | if dpkg --compare-versions "$2" lt-nl 1:6.5p1-2 && \ | 131 | if dpkg --compare-versions "$2" lt-nl 1:6.5p1-2 && \ |
139 | deb-systemd-helper debian-installed ssh.socket && \ | 132 | deb-systemd-helper debian-installed ssh.socket && \ |
140 | deb-systemd-helper --quiet was-enabled ssh.service && \ | 133 | deb-systemd-helper --quiet was-enabled ssh.service && \ |