mirror of
https://github.com/ovh/debian-cis.git
synced 2024-11-25 23:11:24 +01:00
FIX(2.2.12): smbd enabling check was wrong
This commit is contained in:
parent
26c119c4a1
commit
c2090b74b3
@ -29,7 +29,7 @@ audit () {
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
is_service_enabled $SERVICE
|
is_service_enabled $SERVICE
|
||||||
if [ $FNRET = 1 ]; then
|
if [ $FNRET = 0 ]; then
|
||||||
crit "Service $SERVICE is enabled!"
|
crit "Service $SERVICE is enabled!"
|
||||||
else
|
else
|
||||||
ok "Service $SERVICE is disabled"
|
ok "Service $SERVICE is disabled"
|
||||||
@ -49,7 +49,7 @@ apply () {
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
is_service_enabled $SERVICE
|
is_service_enabled $SERVICE
|
||||||
if [ $FNRET = 1 ]; then
|
if [ $FNRET = 0 ]; then
|
||||||
crit "Service $SERVICE is enabled!"
|
crit "Service $SERVICE is enabled!"
|
||||||
systemctl disable $SERVICE
|
systemctl disable $SERVICE
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user