tiny fix for __start_on_boot/explorer/state
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
This commit is contained in:
parent
1016161bfb
commit
38b2e56786
1 changed files with 2 additions and 3 deletions
|
@ -49,9 +49,8 @@ case "$os" in
|
||||||
[ -f "/etc/rc$runlevel.d/S"??"$name" ] || state="absent"
|
[ -f "/etc/rc$runlevel.d/S"??"$name" ] || state="absent"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
centos|fedora|owl|redhat)
|
amazon|centos|fedora|owl|redhat)
|
||||||
state="present"
|
state=$(chkconfig --level "$runlevel" "$name" || echo absent)
|
||||||
state=$(chkconfig --level "$runlevel" \"$name\" || echo absent)
|
|
||||||
[ "$state" ] || state="present"
|
[ "$state" ] || state="present"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue