2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 09:13:08 +00:00

Add wide char * todo the pmatch of output

This commit is contained in:
Casandra Qiu 2015-08-20 14:52:17 -04:00
parent 1c135343c0
commit 0d0f5543de

View File

@ -121,7 +121,7 @@ restrict 127.0.0.1" >>$conf_file
logger -t xcat "$cmd"
output=`eval $cmd 2>&1`
rc=$?
if [ "$rc" != "0" ] || (pmatch "$output" "Time could not*");then
if [ "$rc" != "0" ] || (pmatch "$output" "*Time could not*");then
echo "$cmd failed, NTP maynot be synchronized, please wait for NTP synchronized then run updatenode nodename -P setupntp"
logger -t xcat "$cmd failed"
exit 1