mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-11-04 14:05:41 -07:00
kiss: add support for sls
This commit is contained in:
parent
76f3b72479
commit
0d5fc4a2b6
3
kiss
3
kiss
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user