diff --git a/iso/bootstrap_admin_node.docker.sh b/iso/bootstrap_admin_node.docker.sh index 4ebac3219..8d21c1e72 100644 --- a/iso/bootstrap_admin_node.docker.sh +++ b/iso/bootstrap_admin_node.docker.sh @@ -46,13 +46,6 @@ if [[ "$showmenu" == "yes" || "$showmenu" == "YES" ]]; then fi fi -#Attempt to apply updates if repo is accessible -repourl=$(grep baseurl /etc/yum.repos.d/*updates* | cut -d'=' -f2- | head -1) -if urlaccesscheck check "$repourl" ; then - UPDATE_ISSUES=0 -else - UPDATE_ISSUES=1 -fi #Reread /etc/sysconfig/network to inform puppet of changes . /etc/sysconfig/network @@ -126,6 +119,15 @@ gpgcheck=0 skip_if_unavailable=1 EOF +#Check if repo is accessible +echo "Checking for access to updates repository..." +repourl=$(grep baseurl /etc/yum.repos.d/*updates* 2>/dev/null | cut -d'=' -f2- | head -1) +if urlaccesscheck check "$repourl" ; then + UPDATE_ISSUES=0 +else + UPDATE_ISSUES=1 +fi + if [ $UPDATE_ISSUES -eq 1 ]; then warning="WARNING: There are issues connecting to Fuel update repository.\ \nPlease fix your connection and update this node with \`yum update\`\