mirror of
https://github.com/invoiceninja/dockerfiles.git
synced 2025-12-31 19:47:25 +01:00
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:
4
debian/scripts/init.sh
vendored
4
debian/scripts/init.sh
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user