summaryrefslogtreecommitdiff
path: root/debian/openssh-server.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/openssh-server.postinst')
-rw-r--r--debian/openssh-server.postinst5
1 files changed, 2 insertions, 3 deletions
diff --git a/debian/openssh-server.postinst b/debian/openssh-server.postinst
index 72200604e..5f5787698 100644
--- a/debian/openssh-server.postinst
+++ b/debian/openssh-server.postinst
@@ -305,11 +305,10 @@ if [ "$action" = configure ]; then
305 start-stop-daemon --stop --quiet --oknodo --pidfile /var/run/sshd.pid || true 305 start-stop-daemon --stop --quiet --oknodo --pidfile /var/run/sshd.pid || true
306 fi 306 fi
307 if dpkg --compare-versions "$2" lt 1:6.5p1-1 && \ 307 if dpkg --compare-versions "$2" lt 1:6.5p1-1 && \
308 [ -d /run/systemd/system ] && \ 308 [ -d /run/systemd/system ]; then
309 ! systemctl --quiet is-active ssh; then
310 # We must stop the sysvinit-controlled sshd before we can 309 # We must stop the sysvinit-controlled sshd before we can
311 # restart it under systemd. 310 # restart it under systemd.
312 start-stop-daemon --stop --quiet --oknodo --pidfile /var/run/sshd.pid || true 311 start-stop-daemon --stop --quiet --oknodo --pidfile /var/run/sshd.pid --exec /usr/sbin/sshd || true
313 fi 312 fi
314 if dpkg --compare-versions "$2" lt 1:6.5p1-2 && \ 313 if dpkg --compare-versions "$2" lt 1:6.5p1-2 && \
315 deb-systemd-helper debian-installed ssh.socket && \ 314 deb-systemd-helper debian-installed ssh.socket && \