Add autoremove
This commit is contained in:
parent
288968e47a
commit
b6c19c76a5
1 changed files with 1 additions and 0 deletions
|
@ -7,6 +7,7 @@ for i in $(lxc list --format csv -c n); do
|
||||||
echo "Upgrading Debian/Ubuntu $i"
|
echo "Upgrading Debian/Ubuntu $i"
|
||||||
lxc exec "$i" -- apt update
|
lxc exec "$i" -- apt update
|
||||||
lxc exec "$i" -- apt upgrade -y
|
lxc exec "$i" -- apt upgrade -y
|
||||||
|
lxc exec "$i" -- apt auto-remove -y
|
||||||
fi
|
fi
|
||||||
if lxc exec "$i" -- which pacman >/dev/null 2>&1; then
|
if lxc exec "$i" -- which pacman >/dev/null 2>&1; then
|
||||||
echo "Upgrading ArchLinux $i"
|
echo "Upgrading ArchLinux $i"
|
||||||
|
|
Reference in a new issue