#!/bin/bash -x # Author: Rene Diepstraten # 10.04.2024 Pavel Negrobov -- skip для docker environment (auditd is absent) if [ "$CONTAINERTEST" -eq 1 ] ; then echo "Container/Docker environment detected. Skipping this test ..." exit 0 fi [ ${centos_ver} -lt 7 ] && exit t_Log "Running $0 - checking if systemctl can check a service status" if [ "$CONTAINERTEST" -eq "1" ]; then t_Log "Running in container -> SKIP" exit 0 fi systemctl is-active auditd.service > /dev/null t_CheckExitStatus $?