mirror of https://github.com/apache/cloudstack.git
Exit code needs to be captured post nc output. Don't exec as cmd
This commit is contained in:
parent
fa63c30576
commit
0cb54e2486
|
|
@ -62,7 +62,7 @@ if [[ $ostypeid == "" ]]; then
|
|||
exit 2
|
||||
fi
|
||||
|
||||
$(nc -z $MGMT_SVR 8096)
|
||||
nc -z $MGMT_SVR 8096
|
||||
if [[ $? -ne 0 ]]; then
|
||||
echo "$MGMT_SVR doesn't have port 8096 open"
|
||||
exit 2
|
||||
|
|
|
|||
Loading…
Reference in New Issue