diff options
-rw-r--r-- | debian/openssh-server.postinst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/openssh-server.postinst b/debian/openssh-server.postinst index 1ac6906da..f7240d1cf 100644 --- a/debian/openssh-server.postinst +++ b/debian/openssh-server.postinst | |||
@@ -290,7 +290,7 @@ fix_statoverride() { | |||
290 | } | 290 | } |
291 | 291 | ||
292 | fix_sshd_shell() { | 292 | fix_sshd_shell() { |
293 | if getent passwd sshd | grep ':/bin/false$'; then | 293 | if getent passwd sshd | grep -q ':/bin/false$'; then |
294 | usermod -s /usr/sbin/nologin sshd | 294 | usermod -s /usr/sbin/nologin sshd |
295 | fi | 295 | fi |
296 | } | 296 | } |