mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-18 16:22:33 +01:00
Merge pull request #169 from kevinll/master
fix test 2.2 check for log level Close #166
This commit is contained in:
commit
84a764e3d8
1 changed files with 7 additions and 2 deletions
|
@ -14,9 +14,14 @@ fi
|
|||
|
||||
# 2.2
|
||||
check_2_2="2.2 - Set the logging level"
|
||||
get_docker_effective_command_line_args '-l' | grep "debug" >/dev/null 2>&1
|
||||
get_docker_effective_command_line_args '-l' >/dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
warn "$check_2_2"
|
||||
get_docker_effective_command_line_args '-l' | grep "info" >/dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
pass "$check_2_2"
|
||||
else
|
||||
warn "$check_2_2"
|
||||
fi
|
||||
else
|
||||
pass "$check_2_2"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue