Skip to content
Snippets Groups Projects
Commit a1ff06c4 authored by Barbara Montt's avatar Barbara Montt
Browse files

hola

parent 24036bc7
No related branches found
No related tags found
No related merge requests found
No preview for this file type
#!/bin/bash
export declare -a nodes=($1 $2)
#export declare nodes=$1
echo "== Set variables =="
export declare nodes=$1
export declare -a nodes=($2)
export VERSION='3.0.0'
export masternode=`echo ${nodes} | cut -f1 -d' '`
export declare othernodes=`echo ${nodes[@]} | sed s/${masternode}//`
export size=${#nodes[@]}
......@@ -11,6 +12,8 @@ export pass='admin'
export cookie='alexis'
export VERSION='3.1.1'
#set up cluter p1
for node in ${othernodes}
do
curl -XPOST "http://${user}:${pass}@${masternode}:5984/_cluster_setup" \
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment