refs #2575 changes bind-address to 0.0.0.0 in mariadb configuration
testing/ogcore-api/pipeline/head There was a failure building this commit Details
testing/ogcore-api/pipeline/pr-main There was a failure building this commit Details

grafana-user
Luis Gerardo Romero Garcia 2025-08-07 12:43:34 +02:00
parent d63bc2d798
commit 3b19e62ba6
1 changed files with 2 additions and 0 deletions

View File

@ -67,6 +67,7 @@ if [ "$1" = "configure" ] && [ -z "$2" ]; then
php bin/console opengnsys:load-default-menu
echo ">>> Configurando usuario de base de datos para Grafana"
sed -i 's/^bind-address\s*=.*/bind-address = 0.0.0.0/' /etc/mysql/mariadb.conf.d/50-server.cnf
mariadb -e "
CREATE USER IF NOT EXISTS 'grafana'@'%' IDENTIFIED BY 'grafana';
GRANT SELECT ON ogcore.* TO 'grafana'@'%';
@ -83,6 +84,7 @@ if [ "$1" = "configure" ] && [ -z "$2" ]; then
chown -R opengnsys:www-data /opt/opengnsys/ogcore
systemctl daemon-reload
systemctl enable og-mercure
systemctl restart mariadb.service
systemctl restart og-mercure
systemctl restart nginx
systemctl restart php8.3-fpm