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

This commit is contained in:
Teja Swaroop Pothala 2024-11-19 22:02:10 +05:30
parent 2a398b8c65
commit 762344f7eb
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|rhel9|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 \