mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-07-24 05:11:12 +00:00
Add wide char * todo the pmatch of output
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user