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

Fix restore on fresh install

This commit is contained in:
Jimmy Monin 2021-12-29 12:04:54 +01:00
parent 8d0f8fbc9d
commit 2926153622

View file

@ -106,8 +106,12 @@ yunohost service add grafana-server --description="open source analytics and mon
#================================================= #=================================================
ynh_script_progression --message="Starting a systemd service..." --weight=1 ynh_script_progression --message="Starting a systemd service..." --weight=1
# Enable the systemd service so that InfluxDB and Grafana start at boot
systemctl enable influxdb.service --quiet
systemctl enable grafana-server.service --quiet
ynh_systemd_action --service_name=influxdb --action="start" ynh_systemd_action --service_name=influxdb --action="start"
ynh_systemd_action --service_name=grafana-server --action="start" --log_path="/var/log/grafana/grafana.log" ynh_systemd_action --service_name=grafana-server --action="start" --log_path="/var/log/grafana/grafana.log" --line_match="HTTP Server Listen" --timeout=600
#================================================= #=================================================
# GENERIC FINALIZATION # GENERIC FINALIZATION