From f74869108c0c1a5a1a181a80de96c595666c265f Mon Sep 17 00:00:00 2001 From: tteckster Date: Thu, 27 Apr 2023 01:48:35 -0400 Subject: [PATCH] Update update-lxcs.sh silent `apt update` and show `apt list --upgradable` --- misc/update-lxcs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/update-lxcs.sh b/misc/update-lxcs.sh index b1a6827a..8f2daf58 100644 --- a/misc/update-lxcs.sh +++ b/misc/update-lxcs.sh @@ -45,7 +45,7 @@ function update_container() { alpine) pct exec "$container" -- ash -c "apk update && apk upgrade" ;; archlinux) pct exec "$container" -- bash -c "pacman -Syyu --noconfirm";; fedora|rocky|centos|alma) pct exec "$container" -- bash -c "dnf -y update && dnf -y upgrade" ;; - ubuntu|debian|devuan) pct exec "$container" -- bash -c "apt-get update && apt-get -y dist-upgrade" ;; + ubuntu|debian|devuan) pct exec "$container" -- bash -c "apt-get update 2>/dev/null | grep 'packages.*upgraded'; apt list --upgradable && apt-get -y dist-upgrade" ;; esac } header_info