This commit is contained in:
Cyberes 2024-03-29 10:17:55 -06:00
parent ef71e69996
commit 0a29db20f0
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ fi
# Check if the unit is enabled
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"
exit 2
fi