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:
parent
41636b0d3f
commit
472b57e001
1 changed files with 3 additions and 0 deletions
|
@ -146,6 +146,9 @@ EOF
|
||||||
ynh_systemd_action --service_name=netdata --action="restart"
|
ynh_systemd_action --service_name=netdata --action="restart"
|
||||||
fi
|
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
|
# Update Grafana LDAP authentication configuration
|
||||||
cp ../conf/ldap.toml /etc/grafana
|
cp ../conf/ldap.toml /etc/grafana
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue