vagrant-lxc-ng/boxes/debian/clean.sh
2014-03-09 21:21:38 -03:00

15 lines
320 B
Bash
Executable file

#!/bin/bash
set -e
source common/ui.sh
debug 'Bringing container up'
lxc-start -d -n ${CONTAINER} &>/dev/null || true
info "Cleaning up '${CONTAINER}'..."
log 'Removing temporary files...'
lxc-attach -n ${CONTAINER} -- rm -rf /tmp/*
log 'Removing downloaded packages...'
lxc-attach -n ${CONTAINER} -- apt-get clean