2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-03 03:50:08 +00:00

refine makehost_n_r for task 604 again (#6037)

This commit is contained in:
Weihua Hu 2019-02-26 17:09:19 +08:00 committed by Bin Xu
parent 8a0abf9565
commit 44dff259ee

View File

@ -154,7 +154,7 @@ cmd:makehosts
check:rc==0
cmd:#!/bin/bash
file="/etc/hosts"
if (! grep "s01" $file 2>&1); then
if (! grep "s01 " $file 2>&1 ) || (! grep "s01r1b01" $file 2>&1 ); then
echo "makehosts failed, try XCATBYPASS=YES makehosts again"
XCATBYPASS=YES makehosts
if (! grep "s01" $file 2>&1); then