Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install fixed version of httpd when latest fails (RHEL) #1110

Merged
merged 1 commit into from
Apr 1, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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