Correct setup.sh args

This commit is contained in:
Michael Vines 2018-06-29 07:59:16 -07:00 committed by GitHub
parent e7cdb402fb
commit ec56abfccb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -10,8 +10,9 @@ if [[ -z "$mode" ]]; then
exit 0
fi
num_tokens="$(snapctl get num-tokens)"
public_ip="$(snapctl get public-ip)"
$SNAP/bin/setup.sh -n "$(snapctl get num-tokens)" -p ${public_ip:+-p $public_ip}
$SNAP/bin/setup.sh ${num_tokens:+-n $num_tokens} ${public_ip:+-p $public_ip}
case $mode in
leader+drone)