FIX(2.2.12): smbd enabling check was wrong

This commit is contained in:
Thibault Ayanides 2020-11-02 16:53:04 +01:00
parent 26c119c4a1
commit c2090b74b3

View File

@ -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