mirror of
https://github.com/ovh/debian-cis.git
synced 2024-11-22 05:27:01 +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
|
||||
done
|
||||
is_service_enabled $SERVICE
|
||||
if [ $FNRET = 1 ]; then
|
||||
if [ $FNRET = 0 ]; then
|
||||
crit "Service $SERVICE is enabled!"
|
||||
else
|
||||
ok "Service $SERVICE is disabled"
|
||||
@ -49,7 +49,7 @@ apply () {
|
||||
fi
|
||||
done
|
||||
is_service_enabled $SERVICE
|
||||
if [ $FNRET = 1 ]; then
|
||||
if [ $FNRET = 0 ]; then
|
||||
crit "Service $SERVICE is enabled!"
|
||||
systemctl disable $SERVICE
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user