2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-21 02:30:21 +00:00

Merge pull request #111 from cxhong/mytest

Add wide char * todo the pmatch of output
This commit is contained in:
Xiaopeng Wang
2015-08-24 10:07:33 +08:00

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