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:
parent
ce15c659b3
commit
d1ab1461b5
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue