Add sudo to installed packages on remote hosts
This commit is contained in:
@@ -165,20 +165,20 @@ install_packages() {
|
||||
debian)
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
apt-get update -qq
|
||||
apt-get install -y -qq lm-sensors pciutils iproute2 util-linux >/dev/null
|
||||
apt-get install -y -qq sudo lm-sensors pciutils iproute2 util-linux >/dev/null
|
||||
# Auto-detect sensor modules
|
||||
sensors-detect --auto >/dev/null 2>&1 || true
|
||||
;;
|
||||
alpine)
|
||||
apk update --quiet
|
||||
apk add --quiet lm-sensors pciutils iproute2 util-linux bash
|
||||
apk add --quiet sudo lm-sensors pciutils iproute2 util-linux bash
|
||||
# Auto-detect sensor modules
|
||||
sensors-detect --auto >/dev/null 2>&1 || true
|
||||
;;
|
||||
openwrt)
|
||||
opkg update >/dev/null 2>&1
|
||||
# Best-effort - not all packages exist on all architectures
|
||||
opkg install lm-sensors pciutils ip-full coreutils-stat 2>/dev/null || true
|
||||
opkg install sudo lm-sensors pciutils ip-full coreutils-stat 2>/dev/null || true
|
||||
;;
|
||||
*)
|
||||
echo "Warning: unknown OS, skipping package install"
|
||||
|
||||
Reference in New Issue
Block a user