Install debian extras
This commit is contained in:
parent
dce843db12
commit
bd9b2e8957
1 changed files with 12 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue