]> Frank Brehm's Git Trees - scripts/debian.git/commitdiff
Adding apt-get clean to chroots-distupgrade
authorFrank Brehm <frank@brehm-online.com>
Fri, 17 Jun 2016 07:06:43 +0000 (09:06 +0200)
committerFrank Brehm <frank@brehm-online.com>
Fri, 17 Jun 2016 07:06:43 +0000 (09:06 +0200)
chroots-distupgrade

index 9bc6b70f289a8d311e0d0438c64bc2c4825500c3..84e0fd48d32f5ee78147962fe29e2e8a446ab0e5 100755 (executable)
@@ -42,7 +42,7 @@ for distro in wheezy jessie stretch trusty vivid wily xenial ; do
         continue
     fi
     echo -e "Upgrading chroot ${GREEN}${chroot}${NORMAL} ..."
-    schroot  -c source:${chroot} -u root -d /root -- bash -c "apt-get update && apt-get dist-upgrade -y"
+    schroot  -c source:${chroot} -u root -d /root -- bash -c "apt-get update && apt-get dist-upgrade -y && apt-get clean"
 
 done