#!/bin/sh # # apt-dist-upgrade # # Simple wrapper script around apt-get; upgrade all of the chroots in # one command # # Assumes that apt is configured correctly before we start... # # Steve McIntyre 26/12/2004 LANGUAGE=C LANG=C LC_ALL=C LC_CTYPE=C export LANGUAGE LANG LC_ALL LC_CTYPE . /etc/apt/update.conf for CHROOT in $CHROOTS do if [ $CHROOT = / ] ; then CHR="" else CHR="chroot $CHROOT" fi echo "Running apt-get dist-upgrade in $CHROOT" $CHR apt-get $@ dist-upgrade $CHR apt-get clean done