2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-31 01:56:39 +00:00

Merge pull request #6985 from gurevichmark/sles_migration_zypper2

Use correct substring operator in migration testcase
This commit is contained in:
besawn 2021-05-20 11:08:36 -04:00 committed by GitHub
commit b0e869fee3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -189,7 +189,7 @@ check:rc==0
cmd:xdsh $$CN "zypper -n install xCAT"
check:rc==0
# Name of createrepo package on sles15 is different from sles12
cmd:if [ "__GETNODEATTR($$CN,os)__" = "sle15" ]; then xdsh $$CN "zypper -n install createrepo_c"; else xdsh $$CN "zypper -n install createrepo";fi
cmd:if [[ "__GETNODEATTR($$CN,os)__" =~ "sle15" ]]; then xdsh $$CN "zypper -n install createrepo_c"; else xdsh $$CN "zypper -n install createrepo";fi
check:rc==0
cmd:xdsh $$CN "source /etc/profile.d/xcat.sh"
check:rc==0