From 52446720a18e2e73ad1d9eb0240dd9ef8de3e38f Mon Sep 17 00:00:00 2001
From: Sara Stentvedt Luggenes <saraslu@stud.ntnu.no>
Date: Tue, 7 Mar 2023 13:52:26 +0100
Subject: [PATCH] cock

---
 configuration/manager/startCockroachCluster.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configuration/manager/startCockroachCluster.sh b/configuration/manager/startCockroachCluster.sh
index 7f29566..54675ed 100644
--- a/configuration/manager/startCockroachCluster.sh
+++ b/configuration/manager/startCockroachCluster.sh
@@ -5,11 +5,11 @@ source /home/ubuntu/dcsg2003/configuration/base.sh
 # 1) Hent inn alle aktuelle ip addresser
 #ipList=$(cat /home/ubuntu/logs/ipList)
 ipList="192.168.133.95 192.168.130.160 192.168.134.43"
-glusterListIp=""
 
 # 2) Lag startup kommando for hver ip addresse
 for mainIp in $ipList
 do
+    glusterListIp=""
     kommando="cockroach start --insecure --store=/bfdata --listen-addr=0.0.0.0:26257 --http-addr=0.0.0.0:8080 --background --join="
 
     for ip in $ipList
-- 
GitLab