diff options
Diffstat (limited to 'debian/openssh-server.postinst')
-rw-r--r-- | debian/openssh-server.postinst | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/debian/openssh-server.postinst b/debian/openssh-server.postinst index 5131b2647..9e8516ca7 100644 --- a/debian/openssh-server.postinst +++ b/debian/openssh-server.postinst | |||
@@ -282,20 +282,20 @@ if [ "$action" = configure ]; then | |||
282 | fix_statoverride | 282 | fix_statoverride |
283 | setup_sshd_user | 283 | setup_sshd_user |
284 | # Renamed to /etc/ssh/moduli in 2.9.9 (!) | 284 | # Renamed to /etc/ssh/moduli in 2.9.9 (!) |
285 | if dpkg --compare-versions "$2" lt 1:4.7p1-1; then | 285 | if dpkg --compare-versions "$2" lt-nl 1:4.7p1-1; then |
286 | rm -f /etc/ssh/primes | 286 | rm -f /etc/ssh/primes |
287 | fi | 287 | fi |
288 | if dpkg --compare-versions "$2" lt 1:5.5p1-6; then | 288 | if dpkg --compare-versions "$2" lt-nl 1:5.5p1-6; then |
289 | rm -f /var/run/sshd/.placeholder | 289 | rm -f /var/run/sshd/.placeholder |
290 | fi | 290 | fi |
291 | if dpkg --compare-versions "$2" lt 1:6.2p2-3 && \ | 291 | if dpkg --compare-versions "$2" lt-nl 1:6.2p2-3 && \ |
292 | which initctl >/dev/null && initctl version | grep -q upstart && \ | 292 | which initctl >/dev/null && initctl version 2>/dev/null | grep -q upstart && \ |
293 | ! status ssh 2>/dev/null | grep -q ' start/'; then | 293 | ! status ssh 2>/dev/null | grep -q ' start/'; then |
294 | # We must stop the sysvinit-controlled sshd before we can | 294 | # We must stop the sysvinit-controlled sshd before we can |
295 | # restart it under Upstart. | 295 | # restart it under Upstart. |
296 | start-stop-daemon --stop --quiet --oknodo --pidfile /var/run/sshd.pid || true | 296 | start-stop-daemon --stop --quiet --oknodo --pidfile /var/run/sshd.pid || true |
297 | fi | 297 | fi |
298 | if dpkg --compare-versions "$2" lt 1:6.5p1-2 && \ | 298 | if dpkg --compare-versions "$2" lt-nl 1:6.5p1-2 && \ |
299 | deb-systemd-helper debian-installed ssh.socket && \ | 299 | deb-systemd-helper debian-installed ssh.socket && \ |
300 | deb-systemd-helper --quiet was-enabled ssh.service && \ | 300 | deb-systemd-helper --quiet was-enabled ssh.service && \ |
301 | deb-systemd-helper --quiet was-enabled ssh.socket; then | 301 | deb-systemd-helper --quiet was-enabled ssh.socket; then |
@@ -303,7 +303,7 @@ if [ "$action" = configure ]; then | |||
303 | # enabled. | 303 | # enabled. |
304 | deb-systemd-helper disable ssh.socket >/dev/null || true | 304 | deb-systemd-helper disable ssh.socket >/dev/null || true |
305 | fi | 305 | fi |
306 | if dpkg --compare-versions "$2" lt 1:6.5p1-3 && \ | 306 | if dpkg --compare-versions "$2" lt-nl 1:6.5p1-3 && \ |
307 | [ -d /run/systemd/system ]; then | 307 | [ -d /run/systemd/system ]; then |
308 | # We must stop the sysvinit-controlled sshd before we can | 308 | # We must stop the sysvinit-controlled sshd before we can |
309 | # restart it under systemd. | 309 | # restart it under systemd. |