Skip to content

Commit

Permalink
[bitnami/mariadb-galera] Fix healthcheck if MARIADB_ROOT_USER != root
Browse files Browse the repository at this point in the history
Signed-off-by: simonhammes <simonhammes@users.noreply.github.com>
  • Loading branch information
simonhammes committed Aug 22, 2024
1 parent be12878 commit ff44714
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2134,14 +2134,14 @@ find_jemalloc_lib() {
########################
# Execute a reliable health check against the current mysql instance
# Globals:
# DB_ROOT_PASSWORD, DB_MASTER_ROOT_PASSWORD
# DB_ROOT_USER, DB_ROOT_PASSWORD, DB_MASTER_ROOT_PASSWORD
# Arguments:
# None
# Returns:
# mysqladmin output
#########################
mysql_healthcheck() {
local args=("-uroot" "-h0.0.0.0")
local args=("-u${DB_ROOT_USER}" "-h0.0.0.0")
local root_password

root_password="$(get_master_env_var_value ROOT_PASSWORD)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2134,14 +2134,14 @@ find_jemalloc_lib() {
########################
# Execute a reliable health check against the current mysql instance
# Globals:
# DB_ROOT_PASSWORD, DB_MASTER_ROOT_PASSWORD
# DB_ROOT_USER, DB_ROOT_PASSWORD, DB_MASTER_ROOT_PASSWORD
# Arguments:
# None
# Returns:
# mysqladmin output
#########################
mysql_healthcheck() {
local args=("-uroot" "-h0.0.0.0")
local args=("-u${DB_ROOT_USER}" "-h0.0.0.0")
local root_password

root_password="$(get_master_env_var_value ROOT_PASSWORD)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2134,14 +2134,14 @@ find_jemalloc_lib() {
########################
# Execute a reliable health check against the current mysql instance
# Globals:
# DB_ROOT_PASSWORD, DB_MASTER_ROOT_PASSWORD
# DB_ROOT_USER, DB_ROOT_PASSWORD, DB_MASTER_ROOT_PASSWORD
# Arguments:
# None
# Returns:
# mysqladmin output
#########################
mysql_healthcheck() {
local args=("-uroot" "-h0.0.0.0")
local args=("-u${DB_ROOT_USER}" "-h0.0.0.0")
local root_password

root_password="$(get_master_env_var_value ROOT_PASSWORD)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2134,14 +2134,14 @@ find_jemalloc_lib() {
########################
# Execute a reliable health check against the current mysql instance
# Globals:
# DB_ROOT_PASSWORD, DB_MASTER_ROOT_PASSWORD
# DB_ROOT_USER, DB_ROOT_PASSWORD, DB_MASTER_ROOT_PASSWORD
# Arguments:
# None
# Returns:
# mysqladmin output
#########################
mysql_healthcheck() {
local args=("-uroot" "-h0.0.0.0")
local args=("-u${DB_ROOT_USER}" "-h0.0.0.0")
local root_password

root_password="$(get_master_env_var_value ROOT_PASSWORD)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2134,14 +2134,14 @@ find_jemalloc_lib() {
########################
# Execute a reliable health check against the current mysql instance
# Globals:
# DB_ROOT_PASSWORD, DB_MASTER_ROOT_PASSWORD
# DB_ROOT_USER, DB_ROOT_PASSWORD, DB_MASTER_ROOT_PASSWORD
# Arguments:
# None
# Returns:
# mysqladmin output
#########################
mysql_healthcheck() {
local args=("-uroot" "-h0.0.0.0")
local args=("-u${DB_ROOT_USER}" "-h0.0.0.0")
local root_password

root_password="$(get_master_env_var_value ROOT_PASSWORD)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2134,14 +2134,14 @@ find_jemalloc_lib() {
########################
# Execute a reliable health check against the current mysql instance
# Globals:
# DB_ROOT_PASSWORD, DB_MASTER_ROOT_PASSWORD
# DB_ROOT_USER, DB_ROOT_PASSWORD, DB_MASTER_ROOT_PASSWORD
# Arguments:
# None
# Returns:
# mysqladmin output
#########################
mysql_healthcheck() {
local args=("-uroot" "-h0.0.0.0")
local args=("-u${DB_ROOT_USER}" "-h0.0.0.0")
local root_password

root_password="$(get_master_env_var_value ROOT_PASSWORD)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2134,14 +2134,14 @@ find_jemalloc_lib() {
########################
# Execute a reliable health check against the current mysql instance
# Globals:
# DB_ROOT_PASSWORD, DB_MASTER_ROOT_PASSWORD
# DB_ROOT_USER, DB_ROOT_PASSWORD, DB_MASTER_ROOT_PASSWORD
# Arguments:
# None
# Returns:
# mysqladmin output
#########################
mysql_healthcheck() {
local args=("-uroot" "-h0.0.0.0")
local args=("-u${DB_ROOT_USER}" "-h0.0.0.0")
local root_password

root_password="$(get_master_env_var_value ROOT_PASSWORD)"
Expand Down

0 comments on commit ff44714

Please sign in to comment.