1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/grafana_ynh.git synced 2024-09-03 20:36:29 +02:00

Fix pre-v10 grafana instances

This commit is contained in:
Jimmy Monin 2023-07-27 12:56:00 +02:00
parent 41636b0d3f
commit 472b57e001

View file

@ -146,6 +146,9 @@ EOF
ynh_systemd_action --service_name=netdata --action="restart"
fi
# Fix configuration for Grafana instances existing prior to version 10
sed -i "/^\[server\]$/,/^\[/ s@;serve_from_sub_path = .*@serve_from_sub_path = false@" "/etc/grafana/grafana.ini"
# Update Grafana LDAP authentication configuration
cp ../conf/ldap.toml /etc/grafana