[__start_on_boot] alpine fix

remotes/katolaz/master
Nico Schottelius 6 years ago
parent 707426d1f0
commit dbf29c18c1
  1. 6
      cdist/conf/type/__start_on_boot/explorer/state

@ -89,8 +89,10 @@ else
rcctl ls on | grep "^${name}$" && state='present'
;;
alpine)
state="absent"
rc-update show | sed 's/ *//' | grep -q "^${name} |" && state="present"
state="$(rc-update show | sed 's/ *//' | grep -q "^${name} |" && echo present)"
[ "$state" ] || state="absent"
;;
*)
echo "Unsupported os: $os" >&2
exit 1

Loading…
Cancel
Save