centos: install the EPEL repository and bash-completion if EPEL=1

This commit is contained in:
Michael Adam 2014-12-22 17:55:26 +01:00
parent ea5bcc5080
commit 10f4e31251
1 changed files with 10 additions and 1 deletions

View File

@ -14,8 +14,17 @@ SECS=20
log "Sleeping for $SECS seconds..."
sleep $SECS
utils.lxc.attach yum update -y
# install the fedora epel repo?
EPEL=${EPEL:-0}
# TODO: Support for appending to this list from outside
PACKAGES=(vim curl wget man ca-certificates sudo)
if [ $EPEL = 1 ]; then
utils.lxc.attach yum update -y
utils.lxc.attach yum install epel-release -y
PACKAGES+=' bash-completion'
fi
utils.lxc.attach yum update -y
utils.lxc.attach yum install ${PACKAGES[*]} -y