kiss: add support for sls

This commit is contained in:
illiliti 2020-08-30 01:14:25 +03:00
parent 76f3b72479
commit 0d5fc4a2b6

3
kiss
View File

@ -57,8 +57,9 @@ as_root() {
case ${su##*/} in
doas|sudo) "$su" -u "$user" -- env "$@" ;;
sls) "$su" -u "$user" -c -- env "$@" ;;
su) "$su" -c "env $* <&3" "$user" 3<&0 </dev/tty ;;
*) die "Invalid KISS_SU value: $su (valid: doas, sudo, su)"
*) die "Invalid KISS_SU value: $su (valid: doas, sudo, sls, su)"
esac
}