From bd9b2e8957d4383ed0fecbf5c76bb33cf3b0e029 Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Sat, 8 Mar 2014 02:32:19 -0300 Subject: [PATCH] Install debian extras --- boxes/debian/install-extras.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/boxes/debian/install-extras.sh b/boxes/debian/install-extras.sh index 0d97847..980c557 100755 --- a/boxes/debian/install-extras.sh +++ b/boxes/debian/install-extras.sh @@ -1,6 +1,16 @@ #!/bin/bash set -e -container_name=$1 +source common/ui.sh -echo " Will install extras for '${container_name}'" +info 'Installing extra packages and upgrading' + +debug 'Bringing container up' +lxc-start -d -n ${CONTAINER} &>/dev/null || true + +# TODO: Support for setting this from outside +PACKAGES=(vim curl wget man-db bash-completion python-software-properties software-properties-common) + +lxc-attach -n ${CONTAINER} -- apt-get update +lxc-attach -n ${CONTAINER} -- apt-get install ${PACKAGES[*]} -y --force-yes +lxc-attach -n ${CONTAINER} -- apt-get upgrade -y --force-yes