fux
This commit is contained in:
parent
ef71e69996
commit
0a29db20f0
|
@ -43,7 +43,7 @@ fi
|
||||||
|
|
||||||
# Check if the unit is enabled
|
# Check if the unit is enabled
|
||||||
enabled=$(systemctl is-enabled "$UNIT_NAME")
|
enabled=$(systemctl is-enabled "$UNIT_NAME")
|
||||||
if [ "$enabled" != "enabled" ] && [ "$IS_ALLOWED_DISABLED" != true ]; then
|
if [ "$enabled" != "enabled" ] && [ "$IS_ALLOWED_DISABLED" = false ]; then
|
||||||
echo "CRITICAL - $UNIT_NAME is not enabled"
|
echo "CRITICAL - $UNIT_NAME is not enabled"
|
||||||
exit 2
|
exit 2
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue