fix for bug 4260: otherpkgs add /etc/yum.repos.d/xCAT-* for centos

This commit is contained in:
ligc 2013-10-22 15:02:48 +08:00
parent 1d781ea39f
commit f474dbd1b9

View File

@ -501,7 +501,7 @@ if ( pmatch "$OSVER" "sles11*" && [ $haszypper -eq 1 ] ); then
result=`zypper --non-interactive --no-gpg-checks refresh 2>&1`
elif ( pmatch "$OSVER" "rhel*" && [ $hasyum -eq 1 ] ); then
elif ( ((pmatch "$OSVER" "rhel*") || (pmatch "$OSVER" "centos*")) && [ $hasyum -eq 1 ] ); then
#remove old repo
mkdir -p /etc/yum.repos.d
if [ -r "/etc/yum.repos.d/local-repository.repo" ]; then