yell function and version varible

Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
This commit is contained in:
Thomas Sjögren 2018-05-10 15:19:10 +02:00
parent 2a549f5be5
commit 6c0dce7b19
2 changed files with 16 additions and 11 deletions

View file

@ -1,13 +1,14 @@
#!/bin/sh
# ------------------------------------------------------------------------------
# Docker Bench for Security v1.3.4
# Docker Bench for Security
#
# Docker, Inc. (c) 2015-
#
# Checks for dozens of common best-practices around deploying Docker containers in production.
# Inspired by the CIS Docker Community Edition Benchmark v1.1.0.
# ------------------------------------------------------------------------------
version='1.3.4'
# Load dependencies
. ./functions_lib.sh
. ./helper_lib.sh
@ -62,14 +63,7 @@ if [ -z "$logger" ]; then
logger="${myname}.log"
fi
yell "# ------------------------------------------------------------------------------
# Docker Bench for Security v1.3.4
#
# Docker, Inc. (c) 2015-
#
# Checks for dozens of common best-practices around deploying Docker containers in production.
# Inspired by the CIS Docker Community Edition Benchmark v1.1.0.
# ------------------------------------------------------------------------------"
yell_info
# Warn if not root
ID=$(id -u)
@ -85,7 +79,7 @@ totalChecks=0
currentScore=0
logit "Initializing $(date)\n"
beginjson "1.3.4" "$(date +%s)"
beginjson "$version" "$(date +%s)"
# Load all the tests from tests/ and run them
main () {

View file

@ -110,3 +110,14 @@ get_systemd_service_file(){
echo "/usr/lib/systemd/system/$SERVICE"
fi
}
yell_info() {
yell "# ------------------------------------------------------------------------------
# Docker Bench for Security v$version
#
# Docker, Inc. (c) 2015-
#
# Checks for dozens of common best-practices around deploying Docker containers in production.
# Inspired by the CIS Docker Community Edition Benchmark v1.1.0.
# ------------------------------------------------------------------------------"
}