forked from kiss-community/kiss
docs: update
This commit is contained in:
parent
a453e84ed2
commit
55e603ab66
4
kiss
4
kiss
@ -50,12 +50,12 @@ prompt() {
|
||||
|
||||
as_root() {
|
||||
# Simple function to run a command as root using either 'sudo',
|
||||
# 'doas' or 'su'. This also handles KISS' environment variables.
|
||||
# 'doas' or 'su'. Hurrah for choice.
|
||||
log "Using '${su:-su}'"
|
||||
|
||||
case $su in
|
||||
*sudo) sudo -Eu "${user:-root}" -- "$@" ;;
|
||||
*doas) doas -u "${user:-root}" -- "$@" ;;
|
||||
*doas) doas -u "${user:-root}" -- "$@" ;;
|
||||
*) su -pc "$* <&3" "${user:-root}" 3<&0 </dev/tty ;;
|
||||
esac
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user