From d8021e73fbce1783d17dccc4ac6108a2b7062bc9 Mon Sep 17 00:00:00 2001 From: wuzhy Date: Tue, 13 Apr 2010 03:48:29 +0000 Subject: [PATCH] adjust the code for run_ps and setbootfromnet git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5750 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/setbootfromnet | 10 +++++----- xCAT/postscripts/xcataixpost | 4 ++-- xCAT/postscripts/xcatdsklspost | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/xCAT/postscripts/setbootfromnet b/xCAT/postscripts/setbootfromnet index 894e3c08b..0e016715d 100755 --- a/xCAT/postscripts/setbootfromnet +++ b/xCAT/postscripts/setbootfromnet @@ -33,26 +33,26 @@ if [ ! -z $NODE_NAME ]; then else msg="$0: The environment variable NODE is null, pls check.\n" echo $msg - `logger -t xcat "$msg"` + logger -t xcat "$msg" exit 1 fi if [[ $RET -ne 0 ]] || [[ $NRET -ne 0 ]]; then msg="$0: The returned value is not correct, client_ip=$client_ip, nic=$nic\n" - `logger -t xcat "$msg"` + logger -t xcat "$msg" exit 1 fi if [ ! -z $NIC ]; then if [[ ! -z $CLIENT_IP ]] && [[ ! -z $SERVER_IP ]] && [[ ! -z $GATE_WAY ]]; then - `bootlist -m normal $NIC bserver=$SERVER_IP gateway=$GATE_WAY client=$CLIENT_IP` + bootlist -m normal $NIC bserver=$SERVER_IP gateway=$GATE_WAY client=$CLIENT_IP else - `bootlist -m normal $NIC` + bootlist -m normal $NIC fi else msg="$0: The network interface NIC on the host $CLIENT_IP is not retrieved, pls check.\n" echo $msg - `logger -t xcat "$msg"` + logger -t xcat "$msg" exit 1 fi diff --git a/xCAT/postscripts/xcataixpost b/xCAT/postscripts/xcataixpost index 316e42206..38055879b 100755 --- a/xCAT/postscripts/xcataixpost +++ b/xCAT/postscripts/xcataixpost @@ -260,12 +260,12 @@ if (-f $scriptname) # subroutine used to run postscripts run_ps () { logdir=\\"/var/log/xcat\\" - \\\`mkdir -p \\\$logdir\\\` + mkdir -p \\\$logdir logfile=\\"/var/log/xcat/xcat.log\\" if [[ -f \\\$1 ]]; then echo \\"Running postscript: \\\$1\\" | tee -a \\\$logfile - \\\`./\\\$1 2>&1\\\` | tee -a \\\$logfile + ./\\\$1 2>&1 | tee -a \\\$logfile else echo \\"Postscript \\\$1 does NOT exist.\\" | tee -a \\\$logfile fi diff --git a/xCAT/postscripts/xcatdsklspost b/xCAT/postscripts/xcatdsklspost index 38b36af24..bd22b9d27 100755 --- a/xCAT/postscripts/xcatdsklspost +++ b/xCAT/postscripts/xcatdsklspost @@ -310,12 +310,12 @@ echo " # subroutine used to run postscripts run_ps () { logdir=\"var/log/xcat\" - \`mkdir -p \$logdir\` + mkdir -p \$logdir logfile=\"var/log/xcat/xcat.log\" if [[ -f \$1 ]]; then echo \"Running postscript: \$1\" | tee -a \$logfile - \`./\$1 2>&1\` | tee -a \$logfile + ./\$1 2>&1 | tee -a \$logfile else echo \"Postscript \$1 does NOT exist.\" | tee -a \$logfile fi