diff --git a/manifest.json b/manifest.json index 0a1db7b..d4ca0ed 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Metric & analytic dashboards for monitoring", "fr": "Tableaux de bords de supervision" }, - "version": "8.3.3~ynh1", + "version": "8.3.3~ynh2", "url": "https://grafana.com/oss/grafana/", "upstream": { "license": "AGPL-3.0-only", diff --git a/scripts/restore b/scripts/restore index 2477044..2394b76 100644 --- a/scripts/restore +++ b/scripts/restore @@ -78,6 +78,10 @@ ynh_restore_file --origin_path="/etc/influxdb" ynh_restore_file --origin_path="/etc/grafana" ynh_restore_file --origin_path="/var/lib/grafana/plugins" --not_mandatory +# Set permission with the new grafana user (id could have been changed) +chown -R root:grafana "/etc/grafana" +chown -R grafana:grafana "/var/lib/grafana/plugins" + #================================================= # RESTORE THE INFLUXDB DATABASE #=================================================