mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-05 22:35:04 +01:00
Improves the MariaDB wait command to use mariadb-admin ping for a better check if the server is up (#11396)
This commit is contained in:
parent
80be6793cf
commit
25b5e8fede
1 changed files with 1 additions and 1 deletions
|
|
@ -51,7 +51,7 @@ wait_for_mariadb() {
|
|||
local -r host="${PAPERLESS_DBHOST:-localhost}"
|
||||
local -r port="${PAPERLESS_DBPORT:-3306}"
|
||||
|
||||
while ! true > "/dev/tcp/$host/$port"; do
|
||||
while ! mariadb-admin --host="$host" --port="$port" ping --silent >/dev/null 2>&1; do
|
||||
delay_next_attempt
|
||||
done
|
||||
echo "${LOG_PREFIX} Connected to MariaDB"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue