From 145edbd3f70bb02814982744f476362420720dba Mon Sep 17 00:00:00 2001 From: Alexis Ben Miloud--Josselin Date: Tue, 24 May 2022 18:04:55 +0200 Subject: [PATCH] Use is-enabled to check if alert5 is enabled --- minifirewall/files/check_minifirewall | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minifirewall/files/check_minifirewall b/minifirewall/files/check_minifirewall index 6588c469..e14d73f2 100644 --- a/minifirewall/files/check_minifirewall +++ b/minifirewall/files/check_minifirewall @@ -10,7 +10,7 @@ is_alert5_enabled() { if test -f /etc/init.d/alert5; then test -f /etc/rc2.d/S*alert5 else - systemctl is-active alert5 | grep -q "^active$" + systemctl is-enabled alert5 | grep -q "^enabled$" fi }