refs #2575 adds grafana user for datasource in postinstall
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

pull/45/head
Luis Gerardo Romero Garcia 2025-08-07 11:56:28 +02:00
parent 7fa432568e
commit 9d6ef41f02
1 changed files with 6 additions and 0 deletions

View File

@ -66,6 +66,12 @@ if [ "$1" = "configure" ] && [ -z "$2" ]; then
php bin/console app:load-default-commands
php bin/console opengnsys:load-default-menu
echo ">>> Configurando usuario de base de datos para Grafana"
mariadb -e "
CREATE USER IF NOT EXISTS 'grafana'@'%' IDENTIFIED BY 'grafana';
GRANT SELECT ON ogcore.* TO 'grafana'@'%';
FLUSH PRIVILEGES;"
echo ">>> Configurando servidor web y servicios"
ln -s /opt/opengnsys/ogcore/etc/nginx/sites-available/ogcore.conf /etc/nginx/sites-enabled/ogcore.conf
ln -s /opt/opengnsys/ogcore/etc/nginx/sites-available/mercure.conf /etc/nginx/sites-enabled/mercure.conf