Use is-enabled to check if alert5 is enabled
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Alexis Ben Miloud--Josselin 2022-05-24 18:04:55 +02:00
parent 134355d190
commit 145edbd3f7

View file

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