mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Minor code cleanup in startup.sh
This commit is contained in:
parent
ff68501dc2
commit
8949b5d8c6
@ -31,30 +31,32 @@ FAB=`which fab`
|
||||
#BIGCHAINDIR=`dirname $DEPLOYDIR`
|
||||
#export BIGCHAINDIR
|
||||
|
||||
# check if python-fabric is installed
|
||||
# Check if python-fabric is installed
|
||||
if [ ! -f "$FAB" ]
|
||||
then
|
||||
echo "python-fabric is not installed!!!"
|
||||
echo "python-fabric is not installed"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# checking pem-file and changing access rights
|
||||
# Check for AWS private key file pem-file and changing access rights
|
||||
if [ ! -f "pem/bigchaindb.pem" ]
|
||||
then
|
||||
echo "File pem/bigchaindb.pem (AWS private key) is missing"
|
||||
exit 1
|
||||
fi
|
||||
# 0400 for pem/bigchaindb.pem
|
||||
|
||||
# Change the file permissions on pem/bigchaindb.pem
|
||||
# so that the owner can read it, but that's all
|
||||
chmod 0400 pem/bigchaindb.pem
|
||||
|
||||
# Start the specified number of nodes
|
||||
# Start the specified number of nodes on Amazon EC2
|
||||
# and tag them with the specified tag
|
||||
python run_and_tag.py --tag $TAG --nodes $NODES
|
||||
|
||||
# Wait until all those instances are running
|
||||
python wait_until_all_running.py --tag $TAG
|
||||
|
||||
# in case of elastic ips...
|
||||
# Allocate elastic IP addresses and assign them to the instances
|
||||
python get_elastic_ips.py --tag $TAG
|
||||
|
||||
# Create three files:
|
||||
@ -89,7 +91,7 @@ fab -H $HORST -f fab_prepare_chain.py init_bigchaindb
|
||||
# initiate sharding
|
||||
fab start_bigchaindb_nodes
|
||||
|
||||
# now cleanup!
|
||||
# cleanup
|
||||
rm add2known_hosts.sh add2dbconf
|
||||
|
||||
# DONE!
|
||||
# DONE
|
||||
|
Loading…
x
Reference in New Issue
Block a user