mirror of
https://github.com/docker/docker-install.git
synced 2026-11-20 10:03:11 +03:00
Added a generic fix for enabling SLES repos
Signed-off-by: Anuja Jakhade <anujajakhade@gmail.com>
This commit is contained in:
1 parent
0e685c6ac0
commit
09607b8fc4
1 file changed
+3
-1
+3
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user