fixed bug 3259, remove the old yum repo before addsiteyum

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14683 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jjhua 2012-12-19 07:51:22 +00:00
parent f6317b80b5
commit f39a45518e

View File

@ -9,6 +9,7 @@ do
if [ ! -r "$i" ]; then
continue
fi
rm -rf /etc/yum.repos.d/*
TARGFILE=`basename $i`
TARGFILE=`echo $TARGFILE|sed -e s/.tmpl$/.repo/`
sed -e s!#INSTSERVER#!$MASTER! $i > /etc/yum.repos.d/$TARGFILE