2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-01-09 01:42:30 +00:00

Merge pull request #6728 from gurevichmark/go-xcat-sles

Flush out repomd.xml
This commit is contained in:
cxhong
2020-06-08 17:10:07 -04:00
committed by GitHub

View File

@@ -21,6 +21,9 @@ check:rc==0
#Install additional packages on Red Hat
cmd:if xdsh $$CN "grep \"Red Hat\" /etc/*release >/dev/null"; then xdsh $$CN "yum install -y yum-utils dnf-utils bzip2"; fi
#Pull down repomd.xml on SLES to prevent caching of the wrong file
cmd:if xdsh $$CN "grep \"SUSE\" /etc/*release >/dev/null"; then xdsh $$CN "wget http://xcat.org/files/xcat/repos/yum/devel/core-snap/repodata/repomd.xml"; fi
#Install additional packages on Ubuntu
cmd:if xdsh $$CN "grep \"Ubuntu\" /etc/*release >/dev/null"; then xdsh $$CN "DEBIAN_FRONTEND=noninteractive apt-get install -y gnupg"; fi