Solve conflics
commit
ba6f72d075
|
@ -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