Skip to content

Commit

Permalink
script DASH compliant
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Sep 27, 2023
1 parent 8bd872e commit 003d76d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions appuio/haproxy/files/galera-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ else
to_check=$(echo $return_val | cut -d' ' -f2)

if [ $to_check != "Primary" ]; then
echo "Error: WSREP_CLUSTER_STATUS is not 'Primary'"
echo "Error: WSREP_CLUSTER_STATUS is not 'Primary' it's: $to_check"
exit 1
fi

to_check=$(echo $return_val | cut -d' ' -f4)

if [ $to_check != "ON" ]; then
echo "Error: WSREP_CONNECTED is not 'ON'"
echo "Error: WSREP_CONNECTED is not 'ON' it's: $to_check"
exit 1
fi

Expand All @@ -44,7 +44,7 @@ else

to_check=$(echo $return_val | cut -d' ' -f8)
if [ $to_check != "ON" ]; then
echo "Error: WSREP_READY is not 'ON'"
echo "Error: WSREP_READY is not 'ON' it's: $to_check"
exit 1
fi
fi
Expand Down

0 comments on commit 003d76d

Please sign in to comment.