mirror of
https://github.com/docker/docker-bench-security.git
synced 2024-11-01 08:31:44 +01:00
Merge pull request #508 from QuentinServais/fix/check_2_7_TLS
Fix check_2_7 TLS check with json config
This commit is contained in:
commit
75ccbc78a3
1 changed files with 1 additions and 1 deletions
|
@ -154,7 +154,7 @@ check_2_7() {
|
|||
local check="$id - $desc"
|
||||
starttestjson "$id" "$desc"
|
||||
|
||||
if [ $(grep -E "host.*tcp://" "$CONFIG_FILE") ] || \
|
||||
if $(grep -qE "host.*tcp://" "$CONFIG_FILE") || \
|
||||
[ $(get_docker_cumulative_command_line_args '-H' | grep -vE '(unix|fd)://') > /dev/null 2>&1 ]; then
|
||||
if [ $(get_docker_configuration_file_args '"tlsverify":' | grep 'true') ] || \
|
||||
[ $(get_docker_cumulative_command_line_args '--tlsverify' | grep 'tlsverify') >/dev/null 2>&1 ]; then
|
||||
|
|
Loading…
Reference in a new issue