From c117ab5a42a80e17103fb17d7ce36a7201037cc7 Mon Sep 17 00:00:00 2001 From: Paul Schoenfelder Date: Fri, 25 May 2018 13:10:28 -0400 Subject: [PATCH] [ec2] fix missing epel repo in ec2 hosts --- modules/stack/libexec/init.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/stack/libexec/init.sh b/modules/stack/libexec/init.sh index b754c6e..7cf0b48 100755 --- a/modules/stack/libexec/init.sh +++ b/modules/stack/libexec/init.sh @@ -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