Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Boelen <michael.boelen@cisofy.com>2019-07-26 12:32:48 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2019-07-26 12:32:48 +0300
commit17137408d29d004e7ec1512ab7e6b7d30ff28ebe (patch)
tree85991b6df7fa8f8d49845b48c43038b049b68121 /include/tests_containers
parent8321b986891eae1f928434ea9ac0003ae743ab67 (diff)
Use IsRunning exit code instead of variable
Diffstat (limited to 'include/tests_containers')
-rw-r--r--include/tests_containers3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/tests_containers b/include/tests_containers
index 4d722e52..fb570fdb 100644
--- a/include/tests_containers
+++ b/include/tests_containers
@@ -81,8 +81,7 @@
# Description : Checking Docker daemon status and basic information for later tests
Register --test-no CONT-8102 --weight L --network NO --category security --description "Checking Docker status and information"
if [ ${SKIPTEST} -eq 0 ]; then
- IsRunning "dockerd"
- if [ ${RUNNING} -eq 1 ]; then
+ if IsRunning "dockerd"; then
LogText "Result: found Docker daemon running"
Report "docker_daemon_running=1"
DOCKER_DAEMON_RUNNING=1