Skip to content

Commit 038ffe6

Browse files
committed
refactor: Update cluster join method
1 parent 99e76df commit 038ffe6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

poststart.d/99-join-cluster.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,7 @@
44
if [[ -z "$($RIAK_ADMIN cluster status | egrep $COORDINATOR_NODE_HOST)" && "$COORDINATOR_NODE_HOST" != "$HOST" ]]; then
55
# Not already in this cluster, so join
66
echo "Connecting to cluster coordinator $COORDINATOR_NODE"
7-
curl -sSL $HOST:8098/admin/control/clusters/default/join/riak@$COORDINATOR_NODE_HOST
7+
riak-admin cluster join $CLUSTER_NAME@$COORDINATOR_NODE
8+
riak-admin cluster plan
9+
riak-admin cluster commit
810
fi

0 commit comments

Comments
 (0)