git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12692 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
		
			
				
	
	
		
			16 lines
		
	
	
		
			389 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			389 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/sh
 | 
						|
cd `dirname $0`
 | 
						|
if [ ! -d repos/$OSVER/$ARCH ];  then
 | 
						|
   logger -t xcat -p local4.err "addsiteyum: repos/$OSVER/$ARCH is not a directory"
 | 
						|
   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$/.repo/`
 | 
						|
   sed -e s!#INSTSERVER#!$MASTER! $i > /etc/yum.repos.d/$TARGFILE
 | 
						|
done
 |