fix so output only shows up under updatenode -V
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@17000 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
3f6796b1d3
commit
ea552b5898
@ -560,8 +560,12 @@ while [ $op_index -le $OTHERPKGS_INDEX ]; do
|
||||
do
|
||||
result=`zypper sd $x`
|
||||
done
|
||||
zypper --non-interactive refresh
|
||||
repo_base="/tmp"
|
||||
result=`zypper --non-interactive refresh 2>&1`
|
||||
if [ $VERBOSE ]; then
|
||||
echo "otherpkgs: zypper --non-interactive refresh"
|
||||
echo " $result"
|
||||
fi
|
||||
repo_base="/tmp"
|
||||
elif [ $hasapt -eq 1 ] ; then
|
||||
mkdir -p /etc/apt/sources.list.d
|
||||
result=`rm /etc/apt/sources.list.d/xCAT-otherpkgs*.list 2>&1`
|
||||
@ -654,7 +658,11 @@ while [ $op_index -le $OTHERPKGS_INDEX ]; do
|
||||
yum clean all
|
||||
fi
|
||||
if [ $haszypper -eq 1 ]; then
|
||||
zypper --non-interactive refresh
|
||||
result=`zypper --non-interactive refresh 2>&1`
|
||||
if [ $VERBOSE ]; then
|
||||
echo "otherpkgs: zypper --non-interactive refresh"
|
||||
echo " $result"
|
||||
fi
|
||||
fi
|
||||
elif [ $hasapt -eq 1 ] ; then
|
||||
REPOFILE="$repo_base/xCAT-otherpkgs$index.list"
|
||||
|
Loading…
Reference in New Issue
Block a user