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:
parent
f4ad4ee896
commit
b8b41f86a7
@ -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 "," " "`
|
||||
|
Loading…
Reference in New Issue
Block a user