From 472b57e001ce8bd8204bc3459e9cf3181fbdf269 Mon Sep 17 00:00:00 2001 From: Jimmy Monin Date: Thu, 27 Jul 2023 12:56:00 +0200 Subject: [PATCH] Fix pre-v10 grafana instances --- scripts/upgrade | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 7c43c61..de41cee 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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