mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-18 08:12:34 +01:00
Fix check_2_7 TLS check with json config
This commit is contained in:
parent
5a8d6434e6
commit
ee718c40c0
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