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

[fix] Permission in restore

This commit is contained in:
ljf 2022-03-27 10:45:52 +02:00
parent f2113f052c
commit 1a0a6e952a
2 changed files with 5 additions and 1 deletions

View file

@ -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",

View file

@ -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
#=================================================