diff --git a/snap/hooks/configure b/snap/hooks/configure index bfcd8309d65c7a..2a3d97eb4ba127 100755 --- a/snap/hooks/configure +++ b/snap/hooks/configure @@ -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)