[AUTH-9308] Skip testing some files when systemd is used

This commit is contained in:
mboelen 2016-03-24 17:16:14 +01:00
parent d7c8233dd4
commit 0779005b46
1 changed files with 29 additions and 27 deletions

View File

@ -825,6 +825,7 @@
FOUND=0 FOUND=0
TEST_PERFORMED=0 TEST_PERFORMED=0
if [ ${HAS_SYSTEMD} -eq 0 ]; then
# Check inittab # Check inittab
LogText "Test: Searching /etc/inittab" LogText "Test: Searching /etc/inittab"
if [ -f /etc/inittab ]; then if [ -f /etc/inittab ]; then
@ -855,6 +856,7 @@
else else
LogText "Result: file /etc/sysconfig/init does not exist" LogText "Result: file /etc/sysconfig/init does not exist"
fi fi
fi
# Systemd support # Systemd support
SYTEMD_DIRECTORY="/lib/systemd/system" SYTEMD_DIRECTORY="/lib/systemd/system"
@ -894,7 +896,7 @@
AddHP 2 2 AddHP 2 2
fi fi
else else
LogText "Result: No inittab or init file found, unsure if system is protected" LogText "Result: no tests performed"
fi fi
fi fi
# #