forked from kiss-community/kiss
kiss: update sls syntax
This commit is contained in:
parent
e9197fe881
commit
42163ae1f2
3
kiss
3
kiss
@ -56,8 +56,7 @@ as_root() {
|
|||||||
[ "$uid" = 0 ] || log "Using '${su:-su}' (to become ${user:=root})"
|
[ "$uid" = 0 ] || log "Using '${su:-su}' (to become ${user:=root})"
|
||||||
|
|
||||||
case ${su##*/} in
|
case ${su##*/} in
|
||||||
doas|sudo) "$su" -u "$user" -- env "$@" ;;
|
doas|sudo|sls) "$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, sls, su)"
|
*) die "Invalid KISS_SU value: $su (valid: doas, sudo, sls, su)"
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user