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