vagrant-lxc-ng/boxes/debian/clean.sh

17 lines
276 B
Bash
Raw Normal View History

#!/bin/bash
set -e
source common/ui.sh
2014-03-09 22:34:59 +00:00
source common/utils.sh
debug 'Bringing container up'
2014-03-09 22:34:59 +00:00
utils.lxc.start
info "Cleaning up '${CONTAINER}'..."
log 'Removing temporary files...'
2014-03-09 22:34:59 +00:00
rm -rf ${ROOTFS}/tmp/*
log 'Removing downloaded packages...'
2014-03-09 22:34:59 +00:00
utils.lxc.attach apt-get clean