fix deploy.sh to support original model

to run peer discovery mode, please use

./deploy.sh -p <config_file>

Signed-off-by: Leo Chen <leo@harmony.one>
pull/128/head
Leo Chen 6 years ago
parent 40e13172c0
commit 876c2fc7b5
  1. 8
      deploy.sh

@ -73,8 +73,12 @@ while IFS='' read -r line || [[ -n "$line" ]]; do
IFS=' ' read ip port mode shardID <<< $line
#echo $ip $port $mode
if [ "$mode" != "client" ]; then
./bin/benchmark -ip $ip -port $port -log_folder $log_folder $DB $PEER -min_peers $MIN &
sleep 10
if [ -z "$PEER" ]; then
./bin/benchmark -ip $ip -port $port -config_file $config -log_folder $log_folder $DB -min_peers $MIN &
else
./bin/benchmark -ip $ip -port $port -log_folder $log_folder $DB $PEER -min_peers $MIN &
sleep 5
fi
fi
done < $config

Loading…
Cancel
Save