mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 09:05:55 +00:00
error handling
This commit is contained in:
parent
2de7d2c885
commit
f03720f0a3
1 changed files with 9 additions and 9 deletions
|
|
@ -48,16 +48,16 @@ REGION="us-east-2"
|
|||
# get AMI, security group and subnet for EC2 instance,
|
||||
# launch instance, save instance Id and run cloud-init to set up node env
|
||||
deploy_node
|
||||
# if [ $? > 0 ]; then
|
||||
# exit 1
|
||||
# fi
|
||||
if [ $? > 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Get IP for instance, scp featurebase binary, config and service files;
|
||||
# set up featurebase config in node
|
||||
initialize_featurebase
|
||||
# if [ $? > 0 ]; then
|
||||
# terminate_node
|
||||
# exit 1
|
||||
# else
|
||||
terminate_node
|
||||
# fi
|
||||
if [ $? > 0 ]; then
|
||||
terminate_node
|
||||
exit 1
|
||||
else
|
||||
terminate_node
|
||||
fi
|
||||
Loading…
Add table
Reference in a new issue