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