Fix mariadb-client connection to mysql

Debian Trixie has a new mariadb-client, with encryption by default

Signed-off-by: benbrummer <info@benjamin-brummer.de>
This commit is contained in:
benbrummer
2025-08-29 12:51:27 +02:00
committed by GitHub
parent 1bda3e5809
commit 61728ec89b

View File

@@ -38,6 +38,10 @@ 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