Use is-enabled to check if alert5 is enabled
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
134355d190
commit
145edbd3f7
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue