mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-11-04 05:12:30 +00:00 
			
		
		
		
	add postscript return value
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14396 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		@@ -2,7 +2,7 @@
 | 
			
		||||
cd `dirname $0`
 | 
			
		||||
if [ ! -d repos/$OSVER/$ARCH ];  then
 | 
			
		||||
   logger -t xcat -p local4.err "addsiteyum: repos/$OSVER/$ARCH is not a directory"
 | 
			
		||||
   exit;
 | 
			
		||||
   exit -1;
 | 
			
		||||
fi
 | 
			
		||||
for i in repos/$OSVER/$ARCH/*
 | 
			
		||||
do
 | 
			
		||||
@@ -13,3 +13,5 @@ do
 | 
			
		||||
   TARGFILE=`echo $TARGFILE|sed -e s/.tmpl$/.repo/`
 | 
			
		||||
   sed -e s!#INSTSERVER#!$MASTER! $i > /etc/yum.repos.d/$TARGFILE
 | 
			
		||||
done
 | 
			
		||||
 | 
			
		||||
exit 0
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user