1
0
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:
Dylan Araps 2020-01-30 12:04:01 +02:00
parent 058ebdc480
commit c100d74941
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

6
kiss
View File

@ -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