1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2026-02-13 16:00:38 +00:00

os: fixes for newer mariadb-client versions (especially on alpine 3.21)

This commit is contained in:
DerLinkman
2025-03-10 16:45:57 +01:00
parent 0860a7503e
commit 2f93f1d0c5
8 changed files with 32 additions and 33 deletions

View File

@@ -234,7 +234,7 @@ external_checks() {
diff_c=0
THRESHOLD=${EXTERNAL_CHECKS_THRESHOLD}
# Reduce error count by 2 after restarting an unhealthy container
GUID=$(mysql -u${DBUSER} -p${DBPASS} ${DBNAME} -e "SELECT version FROM versions WHERE application = 'GUID'" -BN)
GUID=$(mariadb --skip-ssl -u${DBUSER} -p${DBPASS} ${DBNAME} -e "SELECT version FROM versions WHERE application = 'GUID'" -BN)
trap "[ ${err_count} -gt 1 ] && err_count=$(( ${err_count} - 2 ))" USR1
while [ ${err_count} -lt ${THRESHOLD} ]; do
err_c_cur=${err_count}