From 61728ec89b9d851a094aae86c5f43f971d722c85 Mon Sep 17 00:00:00 2001 From: benbrummer Date: Fri, 29 Aug 2025 12:51:27 +0200 Subject: [PATCH] Fix mariadb-client connection to mysql Debian Trixie has a new mariadb-client, with encryption by default Signed-off-by: benbrummer --- debian/scripts/init.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/debian/scripts/init.sh b/debian/scripts/init.sh index 207bbd7..491d2de 100755 --- a/debian/scripts/init.sh +++ b/debian/scripts/init.sh @@ -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