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

Update restore

This commit is contained in:
Éric Gaspar 2023-10-24 23:41:41 +02:00
parent ce15c659b3
commit d1ab1461b5

View file

@ -15,8 +15,7 @@ source /usr/share/yunohost/helpers
#================================================= #=================================================
ynh_script_progression --message="Validating restoration parameters..." --weight=1 ynh_script_progression --message="Validating restoration parameters..." --weight=1
test ! -d "/etc/influxdb" \ test ! -d "/etc/influxdb" || ynh_die --message="InfluxDB/Grafana are already installed"
|| ynh_die --message="InfluxDB / Grafana are already installed"
#================================================= #=================================================
# STANDARD RESTORATION STEPS # STANDARD RESTORATION STEPS
@ -46,7 +45,7 @@ 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"
if [ -d "/var/lib/grafana/plugins" ]; then if [ -d "/var/lib/grafana/plugins" ]; then
chown -R grafana:grafana "/var/lib/grafana/plugins" chown -R $app:$app "/var/lib/grafana/plugins"
fi fi
#================================================= #=================================================