Merge branch 'bugfix/KASM-6713_fix_opensuse' into 'develop'

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

Closes KASM-6713

See merge request kasm-technologies/internal/workspaces-core-images!249
This commit is contained in:
Richard Koliser 2024-12-04 14:17:26 +00:00
commit ebc3cf0b1b

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 \