fix: Skip SSL for MariaDB ping in init script (#11491)

Restore compatibility with MariaDB server versions < 11.4, which do not use SSL by default.
This commit is contained in:
Daniel Rheinbay 2025-11-28 23:25:57 +01:00 committed by GitHub
parent ca674e5a02
commit 67d079fe14
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -50,9 +50,8 @@ wait_for_mariadb() {
local -r host="${PAPERLESS_DBHOST:-localhost}"
local -r port="${PAPERLESS_DBPORT:-3306}"
local -r user="${PAPERLESS_DBUSER:-paperless}"
while ! mariadb-admin --host="${host}" --port="${port}" --user="${user}" ping --silent >/dev/null 2>&1; do
while ! mariadb-admin --host="${host}" --port="${port}" --skip-ssl ping --silent >/dev/null 2>&1; do
delay_next_attempt
done
echo "${LOG_PREFIX} Connected to MariaDB"