forked from kiss-community/kiss
doas: Fix path issue
This commit is contained in:
parent
8057cafc62
commit
058ebdc480
2
kiss
2
kiss
@ -54,7 +54,7 @@ as_root() {
|
|||||||
|
|
||||||
case $su in
|
case $su in
|
||||||
*sudo) sudo -u "${user:-root}" -E sh -c "$*" ;;
|
*sudo) sudo -u "${user:-root}" -E sh -c "$*" ;;
|
||||||
*doas) doas -u "${user:-root}" sh -c "$*" ;;
|
*doas) doas -u "${user:-root}" sh -c "KISS_PATH='$KISS_PATH' $*" ;;
|
||||||
*) su -pc "$* <&3" "${user:-root}" 3<&0 </dev/tty ;;
|
*) su -pc "$* <&3" "${user:-root}" 3<&0 </dev/tty ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user