Hi there,
Sorry, I hadn't paid attention to the CentOS 6 code so didn't realise if you modify the installer where I said it then breaks the CentOS 6 installation. The CentOS 6 code is working as it originally was because the Fedora Project have put a copy of the EPEL file inside the architect (x86_64) folder rather than having to delve into the "Packages" or the "e" folder - but only for CentOS 6. CentOS 7 still appears to need the fix, so I think this code is more correct for both CentOS 6 & 7 versions as opposed to what I suggested in my earlier post:
Keith.
Sorry, I hadn't paid attention to the CentOS 6 code so didn't realise if you modify the installer where I said it then breaks the CentOS 6 installation. The CentOS 6 code is working as it originally was because the Fedora Project have put a copy of the EPEL file inside the architect (x86_64) folder rather than having to delve into the "Packages" or the "e" folder - but only for CentOS 6. CentOS 7 still appears to need the fix, so I think this code is more correct for both CentOS 6 & 7 versions as opposed to what I suggested in my earlier post:
Code:
Repo Install
EPEL_BASE_URL="http://dl.fedoraproject.org/pub/epel/$VER/$ARCH";
if [[ "$VER" = "7" ]]; then
EPEL_FILE=$(wget -q -O- "$EPEL_BASE_URL/Packages/e/" | grep -oP '(?<=href=")epel-release.*(?=">)')
wget "$EPEL_BASE_URL/Packages/e/$EPEL_FILE"
else
EPEL_FILE=$(wget -q -O- "$EPEL_BASE_URL/" | grep -oP '(?<=href=")epel-release.*(?=">)')
wget "$EPEL_BASE_URL/$EPEL_FILE"
fi
$PACKAGE_INSTALLER -y install epel-release*.rpm
rm "$EPEL_FILE"
Keith.