mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-18 16:22:33 +01:00
write init date to output file as well
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
This commit is contained in:
parent
a010128ed2
commit
151bb6d16f
1 changed files with 6 additions and 3 deletions
|
@ -19,7 +19,6 @@ this_path=$(abspath "$0") ## Path of this file including filenamel
|
|||
myname=$(basename "${this_path}") ## file name of this script.
|
||||
|
||||
export PATH=/bin:/sbin:/usr/bin:/usr/local/bin:/usr/sbin/
|
||||
logger="${myname}.log"
|
||||
|
||||
# Check for required program(s)
|
||||
req_progs='awk docker grep netstat stat'
|
||||
|
@ -53,8 +52,6 @@ yell "# ------------------------------------------------------------------------
|
|||
# https://benchmarks.cisecurity.org/tools2/docker/CIS_Docker_1.6_Benchmark_v1.0.0.pdf
|
||||
# ------------------------------------------------------------------------------"
|
||||
|
||||
logit "Initializing $(date)\n"
|
||||
|
||||
# Warn if not root
|
||||
ID=$(id -u)
|
||||
if [ "x$ID" != "x0" ]; then
|
||||
|
@ -74,6 +71,12 @@ do
|
|||
esac
|
||||
done
|
||||
|
||||
if [ -z "$logger" ]; then
|
||||
logger="${myname}.log"
|
||||
fi
|
||||
|
||||
logit "Initializing $(date)\n"
|
||||
|
||||
# Load all the tests from tests/ and run them
|
||||
main () {
|
||||
# List all running containers
|
||||
|
|
Loading…
Reference in a new issue