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

Merge pull request #51 from YunoHost-Apps/fix-permission-restore

This commit is contained in:
JimboJoe 2022-08-18 20:02:10 +02:00 committed by GitHub
commit 06054528c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 3 deletions

View file

@ -17,7 +17,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
Metric & analytic dashboards for monitoring Metric & analytic dashboards for monitoring
**Shipped version:** 8.3.3~ynh1 **Shipped version:** 8.3.3~ynh2
**Demo:** https://play.grafana.org **Demo:** https://play.grafana.org

View file

@ -13,7 +13,7 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour
Tableaux de bords de supervision Tableaux de bords de supervision
**Version incluse :** 8.3.3~ynh1 **Version incluse :** 8.3.3~ynh2
**Démo :** https://play.grafana.org **Démo :** https://play.grafana.org

View file

@ -6,7 +6,7 @@
"en": "Metric & analytic dashboards for monitoring", "en": "Metric & analytic dashboards for monitoring",
"fr": "Tableaux de bords de supervision" "fr": "Tableaux de bords de supervision"
}, },
"version": "8.3.3~ynh1", "version": "8.3.3~ynh2",
"url": "https://grafana.com/oss/grafana/", "url": "https://grafana.com/oss/grafana/",
"upstream": { "upstream": {
"license": "AGPL-3.0-only", "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="/etc/grafana"
ynh_restore_file --origin_path="/var/lib/grafana/plugins" --not_mandatory 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 # RESTORE THE INFLUXDB DATABASE
#================================================= #=================================================