Add public-ip argument to setup.sh

This commit is contained in:
Michael Vines
2018-06-28 16:08:59 -07:00
committed by Grimes
parent 1c1d7d1e0e
commit a4c49af859
3 changed files with 55 additions and 9 deletions

View File

@ -10,7 +10,8 @@ if [[ -z "$mode" ]]; then
exit 0
fi
$SNAP/bin/setup.sh "$(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}
case $mode in
leader+drone)