Skip to content

Commit

Permalink
Install fixed version of httpd when latest fails
Browse files Browse the repository at this point in the history
  • Loading branch information
to-bar committed Apr 1, 2020
1 parent 746f7cb commit aca471a
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@ if $IS_OFFLINE_MODE = true; then
# deprecated 'yum localinstall' is used since 'yum install' returns error code when 'nothing to do'
yum --cacheonly --disablerepo='*' localinstall -y $(ls $EPI_REPO_SERVER_PATH/packages/repo-prereqs/*.rpm)
else
yum install -y httpd createrepo yum-utils
# workaround for Azure (#1108), httpd (2.4.6-93) requires httpd-tools = 2.4.6-93 but latest available is 2.4.6-90
if ! yum install -y httpd createrepo yum-utils; then
echo
echo "WARN: 'yum install -y httpd createrepo yum-utils' FAILED"
echo "INFO: Retrying with fixed version (httpd-2.4.6-90.el7)..."
yum install -y httpd-2.4.6-90.el7 createrepo yum-utils
fi
fi

systemctl start httpd
Expand Down

0 comments on commit aca471a

Please sign in to comment.