source: trunk/debathena/scripts/upgrade-schroot @ 23603

Revision 23603, 255 bytes checked in by broder, 16 years ago (diff)
Run an apt-get autoremove when upgrading chroots.
  • Property svn:executable set to *
Line 
1#!/bin/sh
2
3# Usage: upgrade-schroot SCHROOTNAME ...
4
5# Updates the system packages in one or more schroots.
6
7for i in "$@"; do
8    schroot -u root -c "$i" -- sh -c 'apt-get update && apt-get -y dist-upgrade && apt-get -y autoremove && apt-get clean'
9done
Note: See TracBrowser for help on using the repository browser.