diff options
Diffstat (limited to 'debian/openssh-server.postinst')
-rw-r--r-- | debian/openssh-server.postinst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/debian/openssh-server.postinst b/debian/openssh-server.postinst index a438a4e06..087a7125e 100644 --- a/debian/openssh-server.postinst +++ b/debian/openssh-server.postinst | |||
@@ -279,6 +279,13 @@ if [ "$action" = configure ]; then | |||
279 | if dpkg --compare-versions "$2" lt 1:5.5p1-6; then | 279 | if dpkg --compare-versions "$2" lt 1:5.5p1-6; then |
280 | rm -f /var/run/sshd/.placeholder | 280 | rm -f /var/run/sshd/.placeholder |
281 | fi | 281 | fi |
282 | if dpkg --compare-versions "$2" lt 1:6.2p2-3 && \ | ||
283 | which initctl >/dev/null && initctl version | grep -q upstart && \ | ||
284 | ! status ssh 2>/dev/null | grep -q ' start/'; then | ||
285 | # We must stop the sysvinit-controlled sshd before we can | ||
286 | # restart it under Upstart. | ||
287 | start-stop-daemon --stop --quiet --oknodo --pidfile /var/run/sshd.pid || true | ||
288 | fi | ||
282 | fi | 289 | fi |
283 | 290 | ||
284 | #DEBHELPER# | 291 | #DEBHELPER# |