Skip to content

Commit 09607b8

Browse files
committed
Added a generic fix for enabling SLES repos
Signed-off-by: Anuja Jakhade <anujajakhade@gmail.com>
1 parent 0e685c6 commit 09607b8

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)