From b8b41f86a77a2354c472f82f0be7d5247b8688fc Mon Sep 17 00:00:00 2001 From: mxi1 Date: Mon, 16 Feb 2009 07:59:24 +0000 Subject: [PATCH] update otherpkgs for SLES11 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2750 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/otherpkgs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/xCAT/postscripts/otherpkgs b/xCAT/postscripts/otherpkgs index b4b2cc911..922d18bb6 100755 --- a/xCAT/postscripts/otherpkgs +++ b/xCAT/postscripts/otherpkgs @@ -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 "," " "`