Add autoremove

This commit is contained in:
Benoit S 2021-10-02 14:22:45 +09:00
parent 288968e47a
commit b6c19c76a5

View file

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