Skip to content

Commit 93d2499

Browse files
authored
Merge pull request #250 from linux-on-ibm-z/s390x-sles-changes
Added a generic fix for enabling SLES repos
2 parents 2c9e027 + 09607b8 commit 93d2499

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

install.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,8 +536,10 @@ do_install() {
536536
echo "Packages for SLES are currently only available for s390x"
537537
exit 1
538538
fi
539+
540+
sles_version="${dist_version##*.}"
539541
sles_repo="$DOWNLOAD_URL/linux/$lsb_dist/$REPO_FILE"
540-
opensuse_repo="https://download.opensuse.org/repositories/security:SELinux/SLE_15_SP2/security:SELinux.repo"
542+
opensuse_repo="https://download.opensuse.org/repositories/security:SELinux/SLE_15_SP$sles_version/security:SELinux.repo"
541543
if ! curl -Ifs "$sles_repo" > /dev/null; then
542544
echo "Error: Unable to curl repository file $sles_repo, is it valid?"
543545
exit 1

0 commit comments

Comments
 (0)