Replace 'sudo' with 'run0' in vault.sh

Signed-off-by: Ganwtrs <morga.nwinters-99@aliasvault.net>
This commit is contained in:
Ganwtrs 2025-12-08 18:03:05 -08:00 committed by GitHub
parent 71471a30b9
commit 7deb10ea6b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,17 +17,17 @@
set -eu set -eu
unpriv(){ unpriv(){
sudo -u nobody "${@}" run0 -u nobody "${@}"
} }
download() { download() {
unpriv curl -s --proxy http://127.0.0.1:8082 "${1}" | sudo tee "${2}" > /dev/null unpriv curl -s --proxy http://127.0.0.1:8082 "${1}" | run0 tee "${2}" > /dev/null
} }
download https://raw.githubusercontent.com/TommyTran732/QubesOS-Scripts/main/etc/qubes-rpc/qubes.SshAgent /etc/qubes-rpc/qubes.SshAgent download https://raw.githubusercontent.com/TommyTran732/QubesOS-Scripts/main/etc/qubes-rpc/qubes.SshAgent /etc/qubes-rpc/qubes.SshAgent
sudo chmod +x /etc/qubes-rpc/qubes.SshAgent run0 chmod +x /etc/qubes-rpc/qubes.SshAgent
# Not using openssh-askpass here, because of this bug: # Not using openssh-askpass here, because of this bug:
# https://github.com/QubesOS/qubes-issues/issues/9741 # https://github.com/QubesOS/qubes-issues/issues/9741
sudo dnf install -y keepassxc okular pinentry-gnome3 run0 dnf install -y keepassxc okular pinentry-gnome3