mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-19 00:32:34 +01:00
actually catch ssh
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
This commit is contained in:
parent
ef8ff4a9f3
commit
2907078fd2
1 changed files with 1 additions and 1 deletions
|
@ -180,7 +180,7 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
processes=$(docker exec "$c" ps -el 2>/dev/null | grep -c sshd | awk '{print $1}')
|
processes=$(docker exec "$c" ps -el 2>/dev/null | grep -c sshd | awk '{print $1}')
|
||||||
if [ $processes -gt 1 ]; then
|
if [ "$processes" -ge 1 ]; then
|
||||||
# If it's the first container, fail the test
|
# If it's the first container, fail the test
|
||||||
if [ $fail -eq 0 ]; then
|
if [ $fail -eq 0 ]; then
|
||||||
warn "$check_5_7"
|
warn "$check_5_7"
|
||||||
|
|
Loading…
Reference in a new issue