From b6c19c76a5f456e29fe113a46a0c6eee701492a0 Mon Sep 17 00:00:00 2001 From: Benoit S Date: Sat, 2 Oct 2021 14:22:45 +0900 Subject: [PATCH] Add autoremove --- files/lxd-containers-upgrade.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/files/lxd-containers-upgrade.sh b/files/lxd-containers-upgrade.sh index 89c206e..a8ae049 100644 --- a/files/lxd-containers-upgrade.sh +++ b/files/lxd-containers-upgrade.sh @@ -7,6 +7,7 @@ for i in $(lxc list --format csv -c n); do echo "Upgrading Debian/Ubuntu $i" lxc exec "$i" -- apt update lxc exec "$i" -- apt upgrade -y + lxc exec "$i" -- apt auto-remove -y fi if lxc exec "$i" -- which pacman >/dev/null 2>&1; then echo "Upgrading ArchLinux $i"