update otherpkgs for SLES11

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2750 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
mxi1 2009-02-16 07:59:24 +00:00
parent f4ad4ee896
commit b8b41f86a7

View File

@ -34,6 +34,10 @@ if [[ $OSTYPE = linux* ]]; then
if [ -z "$SIP" ]; then
SIP=`grep -h DHCPSID /var/lib/dhcpcd/*.info|awk -F= '{print $2}'|tail -n 1`
fi
#update SIP for SLES11
if [ $OSVER=='sles11' ]; then
SIP=`echo $SIP |awk -F\' '{print $2}'` #trim '
fi
if [[ $OTHERPKGS_HASREPO -eq 1 ]]; then
rpm -q yum
@ -89,7 +93,11 @@ if [[ $OSTYPE = linux* ]]; then
rpm -q zypper
if [ $? -eq 0 ]; then
#use zypper
zypper sa ftp://$SIP/post/otherpkgs/$OSVER/$ARCH/1
if [ $OSVER=='sles11' ]; then
zypper ar ftp://$SIP/post/otherpkgs/$OSVER/$ARCH/1 otherpkgs
else
zypper sa ftp://$SIP/post/otherpkgs/$OSVER/$ARCH/1
fi
#install
PKGS=`echo "$OTHERPKGS" | tr "," " "`