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

Use get_platform function to account also for centos #1218

Merged
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
8 changes: 4 additions & 4 deletions proxy-auth.ks.in
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ fi

# Check that the proxy configuration was written to the repo file
# The repo configuration has a different format on RHEL-10+/Fedora 40+
os_name="@KSTEST_OS_NAME@"
os_version="@KSTEST_OS_VERSION@"
os_major=${os_version%%.*}

if [ "${os_name}" == "rhel" ] && [ ${os_major} -lt 10 ]; then
@KSINCLUDE@ scripts-lib.sh
platform="$(get_platform @KSTEST_OS_NAME@ @KSTEST_OS_VERSION@)"

if [ "${platform}" == "rhel8" ] || [ "${platform}" == "rhel9" ]; then
grep -q 'proxy=http://anaconda:qweqwe@PROXY-ADDON' /mnt/sysroot/etc/yum.repos.d/addon.repo
proxy_rc=$?
else
Expand Down