Install EPEL for rhel6 if not detected
Simple check to see if EPEL repo is enabled for RHEL6 and, if not,
automated install of the repo RPM.
Also adds an additional sanity check which checking for pip. In the
prior case of EPEL being disabled, a RHEL6 host may not have access to
python-pip. Although this shouldn't happen, its a good sanity check.
Change-Id: I4e8a4dda9475b75d071534d4eef469198502a048
diff --git a/functions b/functions
index 669fa69..dfde7dc 100644
--- a/functions
+++ b/functions
@@ -1413,6 +1413,10 @@
else
which pip
fi
+
+ if [ $? -ne 0 ]; then
+ die $LINENO "Unable to find pip; cannot continue"
+ fi
}
# Path permissions sanity check