fixed bug 3259, disabled the the centos internet repos added by the os.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15495 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
111782a728
commit
29945eb0d1
@ -9,10 +9,16 @@ 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
|
||||
|
||||
# disable the internet repos which are created by addsiteyum
|
||||
if [ -r "/etc/yum.repos.d/CentOS-Base.repo" ]; then
|
||||
TMP=`sed -e '/enabled/d' /etc/yum.repos.d/CentOS-Base.repo | sed -e '/^gpgkey/i enabled=0'`
|
||||
echo "$TMP" > /etc/yum.repos.d/CentOS-Base.repo
|
||||
fi
|
||||
|
||||
done
|
||||
|
||||
exit 0
|
||||
|
Loading…
Reference in New Issue
Block a user