From 10f4e312519ba95eca9db08be45af77c4d2241ca Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Mon, 22 Dec 2014 17:55:26 +0100 Subject: [PATCH] centos: install the EPEL repository and bash-completion if EPEL=1 --- centos/install-extras.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/centos/install-extras.sh b/centos/install-extras.sh index b534252..a7671f1 100755 --- a/centos/install-extras.sh +++ b/centos/install-extras.sh @@ -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