Skip to content

Commit 67d079f

Browse files
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.
1 parent ca674e5 commit 67d079f

File tree

1 file changed

+1
-2
lines changed
  • docker/rootfs/etc/s6-overlay/s6-rc.d/init-wait-for-db

1 file changed

+1
-2
lines changed

docker/rootfs/etc/s6-overlay/s6-rc.d/init-wait-for-db/run

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,8 @@ wait_for_mariadb() {
5050

5151
local -r host="${PAPERLESS_DBHOST:-localhost}"
5252
local -r port="${PAPERLESS_DBPORT:-3306}"
53-
local -r user="${PAPERLESS_DBUSER:-paperless}"
5453

55-
while ! mariadb-admin --host="${host}" --port="${port}" --user="${user}" ping --silent >/dev/null 2>&1; do
54+
while ! mariadb-admin --host="${host}" --port="${port}" --skip-ssl ping --silent >/dev/null 2>&1; do
5655
delay_next_attempt
5756
done
5857
echo "${LOG_PREFIX} Connected to MariaDB"

0 commit comments

Comments
 (0)