Skip to content

Commit

Permalink
removing redundant error message
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Sep 29, 2023
1 parent 003d76d commit be46192
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion appuio/haproxy/files/galera-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ fi
# sample return -> "WSREP_CLUSTER_STATUS Primary WSREP_CONNECTED ON WSREP_LOCAL_STATE 4 WSREP_READY ON"
return_val=$(/usr/bin/mysql -h $3 -u root -p"$pass" -e "SELECT VARIABLE_NAME, VARIABLE_VALUE FROM information_schema.global_status WHERE VARIABLE_NAME IN ('wsrep_cluster_status','wsrep_ready','wsrep_local_state','wsrep_connected') ORDER BY VARIABLE_NAME ASC;" -Ns)
if [ $? -ne 0 ]; then
echo Error: Unable to connect to MySQL or query failed
exit 1
else
to_check=$(echo $return_val | cut -d' ' -f2)
Expand Down

0 comments on commit be46192

Please sign in to comment.