Skip to content

Commit

Permalink
Correct setup.sh args
Browse files Browse the repository at this point in the history
  • Loading branch information
mvines authored Jun 29, 2018
1 parent e7cdb40 commit ec56abf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion snap/hooks/configure
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ec56abf

Please sign in to comment.