diff options
author | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2020-01-30 10:04:01 +0000 |
---|---|---|
committer | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2020-01-30 10:04:01 +0000 |
commit | af466b2165bdbf9cae1b907430b58ab4a819b7f0 (patch) | |
tree | e0b818033c26fb9923e0f748690fb834f8b5ecf3 /kiss | |
parent | fd0a3ce1fa48d19928addd5f912919ff638d097e (diff) | |
download | cpt-af466b2165bdbf9cae1b907430b58ab4a819b7f0.tar.gz |
kiss: doas fixes
FossilOrigin-Name: 6498d53766793a45fddca7834e220a83cb551cb6352bb2fe1f987f62be42a55e
Diffstat (limited to 'kiss')
-rwxr-xr-x | kiss | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |