Commit be982f97 authored by Raphael Defosseux's avatar Raphael Defosseux

fix(ci): trying to loop for epel download

Signed-off-by: default avatarRaphael Defosseux <raphael.defosseux@openairinterface.org>
parent 75afbea9
......@@ -298,9 +298,21 @@ check_enable_epel_repos() {
echo "EPEL repos already present. Good."
else
echo "EPEL repos not present. Installing them."
wget --tries=4 --retry-connrefused --wait=8 \
--user-agent="Mozilla" \
https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
idx=0
while [[ $idx -lt 4 ]]; do
wget --tries=4 --retry-connrefused --wait=8 \
--user-agent="Mozilla" \
https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
if [[ $? -ne 0 ]]; then
idx=$(($idx+1))
sleep 1
else
idx=10
fi
done
if [[ $idx -eq 4 ]]; then
exit 1
fi
$SUDO $INSTALLER install $OPTION epel-release-latest-7.noarch.rpm
rm -f epel-release-latest-7.noarch.rpm
fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment