OpenSUSE mirror URL is broken so fallback to original URL - 1.16.0

This commit is contained in:
Teja Swaroop Pothala 2024-11-19 21:59:52 +05:30
parent 75eb876100
commit 5a1e8be336
No known key found for this signature in database
GPG Key ID: E5F3829663E6A4B2

View File

@ -11,7 +11,7 @@ if [[ "${DISTRO}" == @(centos|oracle7) ]] ; then
elif [[ "${DISTRO}" == @(fedora37|fedora38|fedora39|fedora40|oracle8|oracle9|rockylinux9|rockylinux8|almalinux8|almalinux9) ]]; then
dnf install -y wget net-tools bzip2 tar vim hostname procps-ng bc
elif [ "${DISTRO}" == "opensuse" ]; then
sed -i 's/download.opensuse.org/mirrorcache-us.opensuse.org/g' /etc/zypp/repos.d/*.repo
#sed -i 's/download.opensuse.org/mirrorcache-us.opensuse.org/g' /etc/zypp/repos.d/*.repo
zypper install -yn wget net-tools bzip2 tar vim gzip iputils bc
elif [ "${DISTRO}" == "alpine" ]; then
apk add --no-cache \