15 lines
320 B
Bash
Executable file
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
|