Replace sudo with run0 in all scripts
This commit is contained in:
parent
30aa59ddfd
commit
5ca5d6386d
7 changed files with 22 additions and 24 deletions
|
|
@ -3,12 +3,12 @@
|
|||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
sudo cp "$(systemd-path user-configuration)"/setup/sources.list.d/tor.sources /etc/apt/sources.list.d/
|
||||
sudo chmod 644 /etc/apt/sources.list.d/tor.sources
|
||||
run0 cp "$(systemd-path user-configuration)"/setup/sources.list.d/tor.sources /etc/apt/sources.list.d/
|
||||
run0 chmod 644 /etc/apt/sources.list.d/tor.sources
|
||||
|
||||
outfile=/usr/share/keyrings/deb.torproject.org-keyring.pgp
|
||||
curl --silent https://deb.torproject.org/torproject.org/A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc | gpg --dearmor | sudo tee "${outfile}" >/dev/null
|
||||
sudo chmod 644 "${outfile}"
|
||||
curl --silent https://deb.torproject.org/torproject.org/A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc | gpg --dearmor | run0 tee "${outfile}" >/dev/null
|
||||
run0 chmod 644 "${outfile}"
|
||||
|
||||
TOR_PKGS=(
|
||||
# keep-sorted start
|
||||
|
|
@ -18,5 +18,5 @@ TOR_PKGS=(
|
|||
# keep-sorted end
|
||||
)
|
||||
|
||||
sudo apt update
|
||||
sudo apt install --no-install-recommends --yes "${TOR_PKGS[@]}"
|
||||
run0 apt update
|
||||
run0 apt install --no-install-recommends --yes "${TOR_PKGS[@]}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue