Merge pull request #789 from benbrummer/debian

Workaround: Disable SSL for mariadb-client for compatibility with MySQL
This commit is contained in:
David Bomba
2025-09-02 06:22:16 +10:00
committed by GitHub
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