mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
In awsdeploy.sh, check if NUM_NODES set
This commit is contained in:
parent
ebd1b927aa
commit
8839440fd7
@ -46,9 +46,15 @@ if [ ! -d "confiles" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Check if NUM_NODES got set
|
||||||
|
if [ -z "$NUM_NODES" ]; then
|
||||||
|
echo "NUM_NODES is not set in the AWS deployment configuration file "$DEPLOY_CONF_FILE
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# Check if the number of files in confiles directory == NUM_NODES
|
# Check if the number of files in confiles directory == NUM_NODES
|
||||||
CONFILES_COUNT=`ls confiles | wc -l`
|
CONFILES_COUNT=`ls confiles | wc -l`
|
||||||
if [ $CONFILES_COUNT != $NUM_NODES ]; then
|
if [[ $CONFILES_COUNT != $NUM_NODES ]]; then
|
||||||
echo "ERROR: CONFILES_COUNT = "$CONFILES_COUNT
|
echo "ERROR: CONFILES_COUNT = "$CONFILES_COUNT
|
||||||
echo "but NUM_NODES = "$NUM_NODES
|
echo "but NUM_NODES = "$NUM_NODES
|
||||||
echo "so there should be "$NUM_NODES" files in the confiles directory"
|
echo "so there should be "$NUM_NODES" files in the confiles directory"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user