2014-09-24 12:16:20 -03:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
source common/ui.sh
|
|
|
|
source common/utils.sh
|
|
|
|
|
|
|
|
info 'Installing extra packages and upgrading'
|
|
|
|
|
|
|
|
debug 'Bringing container up'
|
|
|
|
utils.lxc.start
|
|
|
|
|
|
|
|
# Sleep for a bit so that the container can get an IP
|
|
|
|
log 'Sleeping for 10 seconds...'
|
|
|
|
sleep 10
|
|
|
|
|
2014-09-24 12:40:53 -03:00
|
|
|
utils.lxc.attach yum update -y
|
|
|
|
|
2014-09-24 12:16:20 -03:00
|
|
|
# TODO: Support for appending to this list from outside
|
|
|
|
PACKAGES=(vim curl wget man-db bash-completion python-software-properties ca-certificates sudo nfs-common)
|
2014-11-04 14:30:03 +02:00
|
|
|
utils.lxc.attach yum install ${PACKAGES[*]} -y
|