[ec2] fix missing epel repo in ec2 hosts

This commit is contained in:
Paul Schoenfelder 2018-05-25 13:10:28 -04:00
parent e2e3d99caa
commit c117ab5a42
1 changed files with 4 additions and 3 deletions

View File

@ -13,13 +13,14 @@ function log() {
printf '%s [init.sh] %s\n' "$ts" "$1" | tee -a "$LOG"
}
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm -P /tmp
yum install -y /tmp/epel-release-latest-7.noarch.rpm
yum update -y
yum upgrade -y --enablerepo=epel >"$LOG"
if ! which wget >/dev/null; then
yum install -y wget >"$LOG"
fi
if ! which unzip >/dev/null; then
yum install -y unzip >"$LOG"
fi