mirror of https://github.com/CISOfy/lynis.git
Adjusted variable to properly check systemd directory
This commit is contained in:
parent
0779005b46
commit
0e9b63a6ed
|
@ -859,13 +859,13 @@
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Systemd support
|
# Systemd support
|
||||||
SYTEMD_DIRECTORY="/lib/systemd/system"
|
SYSTEMD_DIRECTORY="/lib/systemd/system"
|
||||||
if [ -d ${SYSTEMD_DIRECTORY} ]; then
|
if [ -d ${SYSTEMD_DIRECTORY} ]; then
|
||||||
FILES="console-shell.service emergency.service rescue.service"
|
FILES="console-shell.service emergency.service rescue.service"
|
||||||
LogText "Test: going to check several systemd targets now"
|
LogText "Test: going to check several systemd targets now"
|
||||||
for I in ${FILES}; do
|
for I in ${FILES}; do
|
||||||
LogText "Test: checking if target ${I} is available"
|
FILE="${SYSTEMD_DIRECTORY}/${I}"
|
||||||
FILE=${SYSTEMD_DIRECTORY}/${I}
|
LogText "Test: checking if target ${I} is available (${FILE})"
|
||||||
if [ -f ${FILE} ]; then
|
if [ -f ${FILE} ]; then
|
||||||
# Mark test as performed only when at least 1 target exists (e.g. Ubuntu 14.04 has limited systemd support)
|
# Mark test as performed only when at least 1 target exists (e.g. Ubuntu 14.04 has limited systemd support)
|
||||||
TEST_PERFORMED=1
|
TEST_PERFORMED=1
|
||||||
|
|
Loading…
Reference in New Issue