Skip to content

Commit 2644a4d

Browse files
Don't wait for cluster rejoin if no root password available
1 parent 6d7e7cf commit 2644a4d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

templates/has_joined_cluster.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ endtime=`expr $starttime + $total_maxwait_seconds`
1212

1313
while [ `date +%s` -lt $endtime ]
1414
do
15+
if echo "\q" | mysql 2>&1 >/dev/null | grep -q "Access"
16+
then
17+
exit 0
18+
fi
1519
if echo "SHOW STATUS LIKE 'wsrep_ready';" | mysql | grep 'ON'
1620
then
1721
exit 0

0 commit comments

Comments
 (0)