mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-18 16:22:33 +01:00
redirect errors
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
This commit is contained in:
parent
73afde56d0
commit
565ef3fb3b
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ fi
|
|||
# 7.8
|
||||
check_7_8="7.8 - Ensure node certificates are rotated as appropriate"
|
||||
if docker info 2>/dev/null | grep -e "Swarm:\s*active\s*" >/dev/null 2>&1; then
|
||||
if docker info | grep "Expiry Duration: 2 days"; then
|
||||
if docker info 2>/dev/null | grep "Expiry Duration: 2 days"; then
|
||||
pass "$check_7_8"
|
||||
else
|
||||
info "$check_7_8"
|
||||
|
|
Loading…
Reference in a new issue