xcat-core/xCAT/postscripts/addsiteyum
2008-03-26 15:39:32 +00:00

15 lines
305 B
Bash
Executable File

#!/bin/sh
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$/.repo/`
sed -e s!#INSTSERVER#!$MASTER! $i > /etc/yum.repos.d/$TARGFILE
done