You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#!/bin/bash -x
|
|
|
|
# Author: Rene Diepstraten <rene@renediepstraten.nl>
|
|
|
|
# 10.04.2024 Pavel Negrobov <pnegrobov@msvsphere-os.ru> -- 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 $?
|