Compare commits
7 Commits
Author | SHA1 | Date |
---|---|---|
|
4d5dd98f7d | |
|
d8469d59dc | |
|
3b19e62ba6 | |
|
1d366bd7ff | |
|
d63bc2d798 | |
|
9d6ef41f02 | |
|
7fa432568e |
|
@ -1,7 +1,8 @@
|
|||
# Changelog
|
||||
## [0.19.0] - 2025-08-06
|
||||
## [0.19.0] - 2025-08-07
|
||||
### Added
|
||||
- Se ha añadido un nuevo estado "enviado" para cuando se ejecuten acciones a equipos en estado Windows o Linux
|
||||
- Añade nuevo usuario "grafana" con permisos de solo lectura a la base de datos ogcore.
|
||||
|
||||
---
|
||||
## [0.18.1] - 2025-08-06
|
||||
|
|
|
@ -66,6 +66,14 @@ 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"
|
||||
cp -a /etc/mysql/mariadb.conf.d/50-server.cnf /etc/mysql/mariadb.conf.d/50-server.cnf.bak
|
||||
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'@'%';
|
||||
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
|
||||
|
@ -77,6 +85,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
|
||||
|
|
Loading…
Reference in New Issue