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

16 lines
320 B
Bash
Raw Normal View History

#!/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