enable reporting output in otherpkgs

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4331 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
linggao 2009-10-09 17:52:40 +00:00
parent cdeb9db913
commit 52b01fd3d9

View File

@ -218,14 +218,14 @@ if [ "$repo_pkgs_preremove" != "" ]; then
if [ $hasyum -eq 1 ]; then
echo "yum -y removel $repo_pkgs_preremove"
result=`yum -y remove $repo_pkgs_preremove 2>&1`
###echo "$result"
echo "$result"
if [ $? -ne 0 ]; then
logger "otherpkgs: $result"
fi
elif [ $haszypper -eq 1 ]; then
echo "zypper remove -y $repo_pkgs_preremove"
result=`zypper remove -y $repo_pkgs_preremove 2>&1`
###echo "$result"
echo "$result"
if [ $? -ne 0 ]; then
logger "otherpkgs: $result"
fi
@ -247,14 +247,14 @@ if [ "$repo_pkgs" != "" ]; then
if [ $hasyum -eq 1 ]; then
echo "yum -y install $repo_pkgs"
result=`yum -y install $repo_pkgs 2>&1`
###echo "$result"
echo "$result"
if [ $? -ne 0 ]; then
logger "otherpkgs: $result"
fi
elif [ $haszypper -eq 1 ]; then
echo "zypper install -y $repo_pkgs"
result=`zypper install -y $repo_pkgs 2>&1`
###echo "$result"
echo "$result"
if [ $? -ne 0 ]; then
logger "otherpkgs: $result"
fi
@ -309,14 +309,14 @@ if [ "$repo_pkgs_postremove" != "" ]; then
if [ $hasyum -eq 1 ]; then
echo "yum -y removel $repo_pkgs_postremove"
result=`yum -y remove $repo_pkgs_postremove 2>&1`
###echo "$result"
echo "$result"
if [ $? -ne 0 ]; then
logger "otherpkgs: $result"
fi
elif [ $haszypper -eq 1 ]; then
echo "zypper remove -y $repo_pkgs_postremove"
result=`zypper remove -y $repo_pkgs_postremove 2>&1`
###echo "$result"
echo "$result"
if [ $? -ne 0 ]; then
logger "otherpkgs: $result"
fi