Replace sudo with run0 in all scripts

This commit is contained in:
Ohad Livne 2025-06-04 22:54:22 +03:00
parent 30aa59ddfd
commit 5ca5d6386d
Signed by: libohad-dev
GPG key ID: 34FDC68B51191A4D
7 changed files with 22 additions and 24 deletions

View file

@ -3,6 +3,6 @@
set -euo pipefail
IFS=$'\n\t'
sudo sysctl net.ipv6.conf.all.disable_ipv6=1
run0 sysctl net.ipv6.conf.all.disable_ipv6=1
"$@"
sudo sysctl net.ipv6.conf.all.disable_ipv6=0
run0 sysctl net.ipv6.conf.all.disable_ipv6=0

View file

@ -4,11 +4,9 @@ set -euo pipefail
IFS=$'\n\t'
apt_update() {
sudo --reset-timestamp
sudo apt update --audit && apt list --upgradable
sudo apt full-upgrade
sudo apt autoremove
sudo --reset-timestamp
run0 apt update --audit && apt list --upgradable
run0 apt full-upgrade
run0 apt autoremove
}
cargo_update() {