From 92eff528bd000cf420251ffcb1c4fb40cfd436d1 Mon Sep 17 00:00:00 2001 From: immarvin Date: Tue, 15 May 2012 07:28:45 +0000 Subject: [PATCH] fix defect :change all logger calls to put xcat msgs into local4 - ID: 3513525 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12708 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/otherpkgs.ubuntu | 56 +++++++++++++++---------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/xCAT/postscripts/otherpkgs.ubuntu b/xCAT/postscripts/otherpkgs.ubuntu index 296e14323..a7c5d90e4 100755 --- a/xCAT/postscripts/otherpkgs.ubuntu +++ b/xCAT/postscripts/otherpkgs.ubuntu @@ -65,9 +65,9 @@ if [ $mounted -eq 0 ]; then fi echo NFSSERVER=$NFSSERVER -logger -t xcat "NFSSERVER=$NFSSERVER" +logger -t xcat -p local4.info "NFSSERVER=$NFSSERVER" echo OTHERPKGDIR=$OTHERPKGDIR -logger -t xcat "OTHERPKGDIR=$OTHERPKGDIR" +logger -t xcat -p local4.info "OTHERPKGDIR=$OTHERPKGDIR" #if [ -x "/sbin/dhcpcd" ]; then # dhcpcd -n $PRIMARYNIC @@ -291,17 +291,17 @@ while [ $op_index -le $OTHERPKGS_INDEX ]; do if [ $hasyum -eq 1 ]; then echo "yum -y upgrade" result=`yum -y upgrade 2>&1` - logger -t xcat "$result" + logger -t xcat -p local4.info "$result" if [ $? -ne 0 ]; then - logger -t xcat "otherpkgs: $result" + logger -t xcat -p local4.info "otherpkgs: $result" fi echo "$result" elif [ $haszypper -eq 1 ]; then echo "zypper --non-interactive update --auto-agree-with-license" result=`zypper --non-interactive update --auto-agree-with-license 2>&1` - logger -t xcat "$result" + logger -t xcat -p local4.info "$result" if [ $? -ne 0 ]; then - logger -t xcat "otherpkgs: $result" + logger -t xcat -p local4.info "otherpkgs: $result" fi echo "$result" fi @@ -315,17 +315,17 @@ while [ $op_index -le $OTHERPKGS_INDEX ]; do if [ $hasyum -eq 1 ]; then echo "yum -y remove $repo_pkgs_preremove" result=`yum -y remove $repo_pkgs_preremove 2>&1` - logger -t xcat "$result" + logger -t xcat -p local4.info "$result" if [ $? -ne 0 ]; then - logger -t xcat "otherpkgs: $result" + logger -t xcat -p local4.info "otherpkgs: $result" fi echo "$result" elif [ $haszypper -eq 1 ]; then echo "zypper remove -y $repo_pkgs_preremove" result=`zypper remove -y $repo_pkgs_preremove 2>&1` - logger -t xcat "$result" + logger -t xcat -p local4.info "$result" if [ $? -ne 0 ]; then - logger -t xcat "otherpkgs: $result" + logger -t xcat -p local4.info "otherpkgs: $result" fi echo "$result" fi @@ -334,9 +334,9 @@ while [ $op_index -le $OTHERPKGS_INDEX ]; do if [ "$plain_pkgs_preremove" != "" ]; then echo "$sremovecommand $plain_pkgs_preremove" result=`$sremovecommand $plain_pkgs_preremove 2>&1` - logger -t xcat "$result" + logger -t xcat -p local4.info "$result" if [ $? -ne 0 ]; then - logger -t xcat "otherpkgs $result" + logger -t xcat -p local4.info "otherpkgs $result" fi echo "$result" fi @@ -347,17 +347,17 @@ while [ $op_index -le $OTHERPKGS_INDEX ]; do if [ $hasyum -eq 1 ]; then echo "yum -y install $repo_pkgs" result=`yum -y install $repo_pkgs 2>&1` - logger -t xcat "$result" + logger -t xcat -p local4.info "$result" if [ $? -ne 0 ]; then - logger -t xcat "otherpkgs: $result" + logger -t xcat -p local4.info "otherpkgs: $result" fi echo "$result" elif [ $haszypper -eq 1 ]; then echo "zypper install -y $repo_pkgs" result=`zypper install -y $repo_pkgs 2>&1` - logger -t xcat "$result" + logger -t xcat -p local4.info "$result" if [ $? -ne 0 ]; then - logger -t xcat "otherpkgs: $result" + logger -t xcat -p local4.info "otherpkgs: $result" fi echo "$result" #remove the repos @@ -369,9 +369,9 @@ while [ $op_index -le $OTHERPKGS_INDEX ]; do elif [ $hasapt -eq 1 ]; then echo "apt-get -q -y --force-yes install $repo_pkgs" result=`apt-get -q -y --force-yes install $repo_pkgs 2>&1` - logger -t xcat "$result" + logger -t xcat -p local4.info "$result" if [ $? -ne 0 ]; then - logger -t xcat "otherpkgs: $result" + logger -t xcat -p local4.info "otherpkgs: $result" fi echo "$result" fi @@ -401,9 +401,9 @@ while [ $op_index -le $OTHERPKGS_INDEX ]; do echo "$supdatecommand --replacepkgs $plain_pkgs" result=`$supdatecommand --replacepkgs $plain_pkgs 2>&1` - logger -t xcat "$result" + logger -t xcat -p local4.info "$result" if [ $? -ne 0 ]; then - logger -t xcat "otherpkgs $result" + logger -t xcat -p local4.info "otherpkgs $result" fi echo "$result" @@ -420,25 +420,25 @@ while [ $op_index -le $OTHERPKGS_INDEX ]; do if [ $hasyum -eq 1 ]; then echo "yum -y remove $repo_pkgs_postremove" result=`yum -y remove $repo_pkgs_postremove 2>&1` - logger -t xcat "$result" + logger -t xcat -p local4.info "$result" if [ $? -ne 0 ]; then - logger -t xcat "otherpkgs: $result" + logger -t xcat -p local4.info "otherpkgs: $result" fi echo "$result" elif [ $haszypper -eq 1 ]; then echo "zypper remove -y $repo_pkgs_postremove" result=`zypper remove -y $repo_pkgs_postremove 2>&1` - logger -t xcat "$result" + logger -t xcat -p local4.info "$result" if [ $? -ne 0 ]; then - logger -t xcat "otherpkgs: $result" + logger -t xcat -p local4.info "otherpkgs: $result" fi echo "$result" elif [ $hasapt -eq 1 ]; then echo "apt-get -y remove $repo_pkgs_postremove" result=`apt-get -y remove $repo_pkgs_postremove 2>&1` - logger -t xcat "$result" + logger -t xcat -p local4.info "$result" if [ $? -ne 0 ]; then - logger -t xcat "otherpkgs: $result" + logger -t xcat -p local4.info "otherpkgs: $result" fi echo "$result" fi @@ -447,9 +447,9 @@ while [ $op_index -le $OTHERPKGS_INDEX ]; do if [ "$plain_pkgs_postremove" != "" ]; then echo "$sremovecommand $plain_pkgs_postremove" result=`$sremovecommand $plain_pkgs_postremove 2>&1` - logger -t xcat "$result" + logger -t xcat -p local4.info "$result" if [ $? -ne 0 ]; then - logger -t xcat "otherpkgs $result" + logger -t xcat -p local4.info "otherpkgs $result" fi echo "$result" fi