From 0a29db20f035926cde08b49837eacba2ad62bae6 Mon Sep 17 00:00:00 2001 From: Cyberes Date: Fri, 29 Mar 2024 10:17:55 -0600 Subject: [PATCH] fux --- check_systemd_service.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_systemd_service.sh b/check_systemd_service.sh index da456bb..a5b810f 100755 --- a/check_systemd_service.sh +++ b/check_systemd_service.sh @@ -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