2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-12 17:30:19 +00:00

Merge pull request #6200 from tingtli/task69

update go-xcat cases to support ubuntu18.04.x
This commit is contained in:
Weihua Hu
2019-04-04 17:16:53 +08:00
committed by GitHub
3 changed files with 4 additions and 0 deletions

View File

@ -255,6 +255,7 @@ cmd:if grep Ubuntu /etc/*release;then xdsh $$CN "dpkg -l |grep -i perl-xcat";els
check:rc!=0
cmd:if xdsh $$CN "grep \"Red Hat\" /etc/*release >/dev/null"; then xdsh $$CN "yum install -y yum-utils bzip2"; fi
check:rc==0
cmd:if xdsh $$CN "grep Ubuntu /etc/*release >/dev/null"; then xdsh $$CN "apt-get install -y gnupg"; fi
cmd:xdsh $$CN "cd /; scp -r $$MN:/opt/xcat/share/xcat/tools/go-xcat ./"
check:rc==0
cmd:xdsh $$CN "cd /; scp -r $$MN:/core-*-snap.tar.bz2 /xcat-core.tar.bz2"

View File

@ -43,6 +43,7 @@ cmd:if grep Ubuntu /etc/*release;then xdsh $$CN "dpkg -l |grep -i perl-xcat";els
check:rc!=0
cmd:if xdsh $$CN "grep \"Red Hat\" /etc/*release >/dev/null"; then xdsh $$CN "yum install -y yum-utils bzip2"; fi
check:rc==0
cmd:if xdsh $$CN "grep Ubuntu /etc/*release >/dev/null"; then xdsh $$CN "apt-get install -y gnupg"; fi
cmd:xdsh $$CN "cd /; rm -rf /go-xcat"
check:rc==0
cmd:xdsh $$CN "cd /; scp -r $$MN:/opt/xcat/share/xcat/tools/go-xcat ./"
@ -85,6 +86,7 @@ cmd:if grep Ubuntu /etc/*release;then xdsh $$CN "dpkg -l |grep -i perl-xcat";els
check:rc!=0
cmd:if xdsh $$CN "grep \"Red Hat\" /etc/*release >/dev/null"; then xdsh $$CN "yum install -y yum-utils bzip2"; fi
check:rc==0
cmd:if xdsh $$CN "grep Ubuntu /etc/*release >/dev/null"; then xdsh $$CN "apt-get install -y gnupg"; fi
cmd:xdsh $$CN "cd /; rm -rf /go-xcat"
check:rc==0
cmd:xdsh $$CN "cd /; scp -r $$MN:/opt/xcat/share/xcat/tools/go-xcat ./"

View File

@ -176,6 +176,7 @@ cmd:if grep Ubuntu /etc/*release;then xdsh $$CN "dpkg -l |grep -i perl-xcat";els
check:rc!=0
cmd:if xdsh $$CN "grep \"Red Hat\" /etc/*release >/dev/null"; then xdsh $$CN "yum install -y yum-utils bzip2"; fi
check:rc==0
cmd:if xdsh $$CN "grep Ubuntu /etc/*release >/dev/null"; then xdsh $$CN "apt-get install -y gnupg"; fi
cmd:xdsh $$CN "cd /; rm -rf /go-xcat"
check:rc==0
cmd:xdsh $$CN "cd /; scp -r $$MN:/opt/xcat/share/xcat/tools/go-xcat ./"