1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-11-04 05:55:36 -07:00

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 case ${su##*/} in
doas|sudo) "$su" -u "$user" -- env "$@" ;; doas|sudo) "$su" -u "$user" -- env "$@" ;;
sls) "$su" -u "$user" -c -- env "$@" ;;
su) "$su" -c "env $* <&3" "$user" 3<&0 </dev/tty ;; 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 esac
} }