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

Fix restoration

This commit is contained in:
Jimmy Monin 2022-09-03 19:04:01 +02:00
parent 49569cca58
commit a73295d6de

View file

@ -80,7 +80,9 @@ ynh_restore_file --origin_path="/var/lib/grafana/plugins" --not_mandatory
# Set permission with the new grafana user (id could have been changed) # Set permission with the new grafana user (id could have been changed)
chown -R root:grafana "/etc/grafana" chown -R root:grafana "/etc/grafana"
chown -R grafana:grafana "/var/lib/grafana/plugins" if [ -d "/var/lib/grafana/plugins" ]; then
chown -R grafana:grafana "/var/lib/grafana/plugins"
fi
#================================================= #=================================================
# RESTORE THE INFLUXDB DATABASE # RESTORE THE INFLUXDB DATABASE