Add sudo to installed packages on remote hosts
All checks were successful
Build-Publish / build (linux/amd64) (push) Successful in 4s
Build-Publish / build (linux/arm64) (push) Successful in 11s
Build-Publish / create-manifest (push) Successful in 2s
Build-Publish / publish-template (push) Successful in 8s

This commit is contained in:
j
2026-03-08 14:01:28 +13:00
parent 8ced504712
commit 9fbc19183c

View File

@@ -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"