From 25aaf1cceed42e33b62618e7d30706ea763c5619 Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Thu, 12 Feb 2009 10:14:58 +0000 Subject: [PATCH] Enable the capability of installing additional packages on SLES. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2725 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/otherpkgs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/xCAT/postscripts/otherpkgs b/xCAT/postscripts/otherpkgs index 6cb819a26..b4b2cc911 100755 --- a/xCAT/postscripts/otherpkgs +++ b/xCAT/postscripts/otherpkgs @@ -85,17 +85,17 @@ if [[ $OSTYPE = linux* ]]; then fi - #try zypper --- TODO: get a SLES cluster and test - #rpm -q zypper - #if [ $? -eq 0 ]; then + #try zypper + rpm -q zypper + if [ $? -eq 0 ]; then #use zypper - #zypper sa ftp://$SIP/post/otherpkgs/$OSVER/$ARCH/1 + zypper sa ftp://$SIP/post/otherpkgs/$OSVER/$ARCH/1 #install - #PKGS=`echo "$OTHERPKGS" | tr "," " "` - #zypper install -y $PKGS - #exit 0 - #fi + PKGS=`echo "$OTHERPKGS" | tr "," " "` + zypper install -y $PKGS + exit 0 + fi fi #if it is not handled by the above code, we will use wget to handle it