aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2020-01-30 10:04:01 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2020-01-30 10:04:01 +0000
commitaf466b2165bdbf9cae1b907430b58ab4a819b7f0 (patch)
treee0b818033c26fb9923e0f748690fb834f8b5ecf3 /kiss
parentfd0a3ce1fa48d19928addd5f912919ff638d097e (diff)
downloadcpt-af466b2165bdbf9cae1b907430b58ab4a819b7f0.tar.gz
kiss: doas fixes
FossilOrigin-Name: 6498d53766793a45fddca7834e220a83cb551cb6352bb2fe1f987f62be42a55e
Diffstat (limited to 'kiss')
-rwxr-xr-xkiss6
1 files changed, 3 insertions, 3 deletions
diff --git a/kiss b/kiss
index d8996a3..7c40742 100755
--- a/kiss
+++ b/kiss
@@ -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