diff options
Diffstat (limited to 'debian/openssh-server.postinst')
-rw-r--r-- | debian/openssh-server.postinst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/debian/openssh-server.postinst b/debian/openssh-server.postinst index b35e227e7..72200604e 100644 --- a/debian/openssh-server.postinst +++ b/debian/openssh-server.postinst | |||
@@ -311,6 +311,14 @@ if [ "$action" = configure ]; then | |||
311 | # restart it under systemd. | 311 | # restart it under systemd. |
312 | start-stop-daemon --stop --quiet --oknodo --pidfile /var/run/sshd.pid || true | 312 | start-stop-daemon --stop --quiet --oknodo --pidfile /var/run/sshd.pid || true |
313 | fi | 313 | fi |
314 | if dpkg --compare-versions "$2" lt 1:6.5p1-2 && \ | ||
315 | deb-systemd-helper debian-installed ssh.socket && \ | ||
316 | deb-systemd-helper --quiet was-enabled ssh.service && \ | ||
317 | deb-systemd-helper --quiet was-enabled ssh.socket; then | ||
318 | # 1:6.5p1-1 mistakenly left both ssh.service and ssh.socket | ||
319 | # enabled. | ||
320 | deb-systemd-helper disable ssh.socket >/dev/null || true | ||
321 | fi | ||
314 | fi | 322 | fi |
315 | 323 | ||
316 | #DEBHELPER# | 324 | #DEBHELPER# |