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.
18 lines
535 B
18 lines
535 B
10 months ago
|
#!/bin/bash
|
||
|
# Author: Athmane Madjoudj <athmanem@gmail.com>
|
||
|
# Rene Diepstraten <rene@renediepstraten.nl>
|
||
|
|
||
|
t_Log "Running $0 - Checking if systemctl can check if a service is enabled"
|
||
|
|
||
|
if [ "$CONTAINERTEST" -eq "1" ]; then
|
||
|
t_Log "Running in container -> SKIP"
|
||
|
exit 0
|
||
|
fi
|
||
|
|
||
|
[ ${centos_ver} -lt 7 ] && { t_Log "Systemd is part of el since el7, skipping systemd tests..." ; exit ; }
|
||
|
|
||
|
# auditd is used as example because it's standard with minimal install
|
||
|
|
||
|
systemctl is-enabled auditd.service > /dev/null
|
||
|
|
||
|
t_CheckExitStatus $?
|