centos: install the EPEL repository and bash-completion if EPEL=1
authorMichael Adam <obnox@samba.org>
Mon, 22 Dec 2014 16:55:26 +0000 (17:55 +0100)
committerMichael Adam <obnox@samba.org>
Mon, 7 Dec 2015 09:44:06 +0000 (10:44 +0100)
centos/install-extras.sh

index b534252db90019f163e53df457704015622980c8..a7671f1e2fd1ffb97ee52a386b1d696b2960a6a3 100755 (executable)
@@ -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