Evilham
2038244ec4
Apparently these types were only supporting FreeBSD, this brings in support for Debian and Devuan by taking advantage of https://packages.debian.org/bullseye/runit-run
23 lines
406 B
Bash
Executable file
23 lines
406 B
Bash
Executable file
#!/bin/sh -e
|
|
|
|
__package "runit"
|
|
|
|
os="$(cat "${__global}/explorer/os")"
|
|
case "${os}" in
|
|
debian|devuan)
|
|
# zero-config sysvinit and systemd compatibility
|
|
__package runit-run
|
|
;;
|
|
freebsd)
|
|
__key_value \
|
|
--file "/etc/rc.conf" \
|
|
--key "runsvdir_enable" \
|
|
--delimiter "=" \
|
|
--value "yes" \
|
|
"runsvdir_enable"
|
|
;;
|
|
*)
|
|
echo "Your OS '${os}' is currently not supported." >&2
|
|
exit 1
|
|
;;
|
|
esac
|