mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-12-25 16:40:07 -07:00
kiss: doas fixes
This commit is contained in:
parent
058ebdc480
commit
c100d74941
6
kiss
6
kiss
@ -53,9 +53,9 @@ as_root() {
|
|||||||
log "Using '${su:-su}'"
|
log "Using '${su:-su}'"
|
||||||
|
|
||||||
case $su in
|
case $su in
|
||||||
*sudo) sudo -u "${user:-root}" -E sh -c "$*" ;;
|
*sudo) sudo -E sh -c "$*" ;;
|
||||||
*doas) doas -u "${user:-root}" sh -c "KISS_PATH='$KISS_PATH' $*" ;;
|
*doas) doas sh -c "HOME='$HOME' KISS_PATH='$KISS_PATH' $*" ;;
|
||||||
*) su -pc "$* <&3" "${user:-root}" 3<&0 </dev/tty ;;
|
*) su -pc "$* <&3" 3<&0 </dev/tty ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
exit
|
exit
|
||||||
|
Loading…
Reference in New Issue
Block a user