Skip to content

Commit

Permalink
Merge pull request docker#250 from linux-on-ibm-z/s390x-sles-changes
Browse files Browse the repository at this point in the history
Added a generic fix for enabling SLES repos
  • Loading branch information
thaJeztah authored Aug 20, 2021
2 parents 2c9e027 + 09607b8 commit 93d2499
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -536,8 +536,10 @@ do_install() {
echo "Packages for SLES are currently only available for s390x"
exit 1
fi

sles_version="${dist_version##*.}"
sles_repo="$DOWNLOAD_URL/linux/$lsb_dist/$REPO_FILE"
opensuse_repo="https://download.opensuse.org/repositories/security:SELinux/SLE_15_SP2/security:SELinux.repo"
opensuse_repo="https://download.opensuse.org/repositories/security:SELinux/SLE_15_SP$sles_version/security:SELinux.repo"
if ! curl -Ifs "$sles_repo" > /dev/null; then
echo "Error: Unable to curl repository file $sles_repo, is it valid?"
exit 1
Expand Down

0 comments on commit 93d2499

Please sign in to comment.