From df8b0b146a2a3c7588284b0643731474c500abad Mon Sep 17 00:00:00 2001 From: Mehedi Hasan Date: Wed, 29 Nov 2023 22:08:05 +0600 Subject: [PATCH] fix non root user issue Signed-off-by: Mehedi Hasan --- scripts/run.sh | 2 +- scripts/run_read_only.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/run.sh b/scripts/run.sh index 830dfa0..e26eb3e 100755 --- a/scripts/run.sh +++ b/scripts/run.sh @@ -150,7 +150,7 @@ function wait_for_mysqld_running() { local mysql="$mysql_header --host=$localhost" for i in {900..0}; do - out=$(mysql -N -e "select 1;" 2>/dev/null) + out=$(${mysql} -N -e "select 1;" 2>/dev/null) log "INFO" "Attempt $i: Pinging '$report_host' has returned: '$out'...................................." if [[ "$out" == "1" ]]; then break diff --git a/scripts/run_read_only.sh b/scripts/run_read_only.sh index 5efb383..038f0db 100755 --- a/scripts/run_read_only.sh +++ b/scripts/run_read_only.sh @@ -54,7 +54,7 @@ function wait_for_mysqld_running() { local mysql="$mysql_header --host=$localhost" for i in {900..0}; do - out=$(mysql -N -e "select 1;" 2>/dev/null) + out=$(${mysql} -N -e "select 1;" 2>/dev/null) log "INFO" "Attempt $i: Pinging '$report_host' has returned: '$out'...................................." if [[ "$out" == "1" ]]; then break