Fix the yum repository setup postscript
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@899 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
6c59e72c63
commit
3b10cb8cbf
13
xCAT/postscripts/addsiteyum
Normal file → Executable file
13
xCAT/postscripts/addsiteyum
Normal file → Executable file
@ -1,7 +1,14 @@
|
||||
#!/bin/sh
|
||||
for i in /install/postscripts/repos/$OSVER/$ARCH/*
|
||||
cd `dirname $0`
|
||||
if [ ! -d repos/$OSVER/$ARCH ]; then
|
||||
exit;
|
||||
fi
|
||||
for i in repos/$OSVER/$ARCH/*
|
||||
do
|
||||
if [ ! -r "$i" ]; then
|
||||
continue
|
||||
fi
|
||||
TARGFILE=`basename $i`
|
||||
TARGFILE=`echo $TARGFILE|sed -e s/.tmpl$//`
|
||||
sed -e s!#INSTSERVER#!$MASTER! $i > /etc/yum/repos.d/$TARGFILE
|
||||
TARGFILE=`echo $TARGFILE|sed -e s/.tmpl$/.repo/`
|
||||
sed -e s!#INSTSERVER#!$MASTER! $i > /etc/yum.repos.d/$TARGFILE
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user