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

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