From 085df042c1888aaf41adecaa9cbec064fbd1cc82 Mon Sep 17 00:00:00 2001 From: benbrummer Date: Mon, 1 Sep 2025 21:36:45 +0200 Subject: [PATCH] Workaround: Disable SSL for mariadb-client for compatibility with MySQL --- debian/Dockerfile | 3 +++ debian/scripts/init.sh | 4 ---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/debian/Dockerfile b/debian/Dockerfile index 64d324b..4dce691 100644 --- a/debian/Dockerfile +++ b/debian/Dockerfile @@ -68,6 +68,9 @@ COPY php/php.ini /usr/local/etc/php/conf.d/invoiceninja.ini COPY php/php-fpm.conf /usr/local/etc/php-fpm.d/invoiceninja.conf +# Workaround: Disable SSL for mariadb-client for compatibility with MySQL +RUN echo "skip-ssl = true" >> /etc/mysql/mariadb.conf.d/50-client.cnf + # Setup supervisor COPY supervisor/supervisord.conf /etc/supervisor/conf.d/supervisord.conf diff --git a/debian/scripts/init.sh b/debian/scripts/init.sh index 491d2de..207bbd7 100755 --- a/debian/scripts/init.sh +++ b/debian/scripts/init.sh @@ -38,10 +38,6 @@ if [ "$*" = 'supervisord -c /etc/supervisor/supervisord.conf' ]; then /var/www/html/storage \ -type d -exec chmod 755 {} \; - # Fix mariadb-client connection to mysql - echo "[client]\nskip-ssl = true" > /var/www/.my.cnf - chown www-data:www-data /var/www/.my.cnf - # Clear and cache config in production if [ "$APP_ENV" = "production" ]; then runuser -u www-data -- php artisan optimize