Workaround: Disable SSL for mariadb-client for compatibility with MySQL

This commit is contained in:
benbrummer
2025-09-01 21:36:45 +02:00
committed by GitHub
parent b67f49b9ba
commit 085df042c1
2 changed files with 3 additions and 4 deletions

3
debian/Dockerfile vendored
View File

@@ -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

View File

@@ -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