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}'"
case $su in
*sudo) sudo -u "${user:-root}" -E sh -c "$*" ;;
*doas) doas -u "${user:-root}" sh -c "KISS_PATH='$KISS_PATH' $*" ;;
*) su -pc "$* <&3" "${user:-root}" 3<&0 </dev/tty ;;
*sudo) sudo -E sh -c "$*" ;;
*doas) doas sh -c "HOME='$HOME' KISS_PATH='$KISS_PATH' $*" ;;
*) su -pc "$* <&3" 3<&0 </dev/tty ;;
esac
exit