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

20 lines
338 B
Bash
Raw Normal View History

2014-03-25 03:26:19 +00:00
#!/bin/bash
set -e
source common/ui.sh
source common/utils.sh
debug 'Bringing container up'
utils.lxc.start
info "Cleaning up '${CONTAINER}'..."
log 'Removing temporary files...'
rm -rf ${ROOTFS}/tmp/*
2014-09-23 03:30:38 +00:00
log 'cleaning up dhcp leases'
rm -f ${ROOTFS}/var/lib/dhcp/*
2014-03-25 03:26:19 +00:00
log 'Removing downloaded packages...'
utils.lxc.attach apt-get clean