From 2cc0674e2d756a178a6c62e736dcc3e2d5ef5753 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sun, 6 Feb 2022 19:08:44 +0100 Subject: [PATCH] Fix bullseye --- scripts/change_url | 1 + scripts/install | 2 ++ scripts/restore | 1 + scripts/upgrade | 1 + 4 files changed, 5 insertions(+) diff --git a/scripts/change_url b/scripts/change_url index af1e5ac..19d3a88 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -126,6 +126,7 @@ fi #================================================= ynh_script_progression --message="Starting a systemd service..." --weight=2 +systemctl daemon-reload ynh_systemd_action --service_name=grafana-server --action="start" --log_path="/var/log/grafana/grafana.log" --line_match="HTTP Server Listen" --timeout=600 #================================================= diff --git a/scripts/install b/scripts/install index 50d6846..6be2207 100644 --- a/scripts/install +++ b/scripts/install @@ -173,6 +173,7 @@ sed -i "/^\[database\]$/,/^\[/ { ynh_store_file_checksum --file="$grafana_conf" # Start Grafana and wait for it to be fully started +systemctl daemon-reload ynh_systemd_action --service_name=grafana-server --action="restart" --log_path="/var/log/grafana/grafana.log" --line_match="HTTP Server Listen" --timeout=600 # Change admin name to the specified one @@ -215,6 +216,7 @@ yunohost service add grafana-server --description="open source analytics and mon #================================================= ynh_script_progression --message="Starting a systemd service..." --weight=2 +systemctl daemon-reload ynh_systemd_action --service_name=grafana-server --action="restart" --log_path="/var/log/grafana/grafana.log" --line_match="HTTP Server Listen" --timeout=600 #================================================= diff --git a/scripts/restore b/scripts/restore index eccbe29..5aebe16 100644 --- a/scripts/restore +++ b/scripts/restore @@ -110,6 +110,7 @@ ynh_script_progression --message="Starting a systemd service..." --weight=1 systemctl enable influxdb.service --quiet systemctl enable grafana-server.service --quiet +systemctl daemon-reload ynh_systemd_action --service_name=influxdb --action="start" ynh_systemd_action --service_name=grafana-server --action="start" --log_path="/var/log/grafana/grafana.log" --line_match="HTTP Server Listen" --timeout=600 diff --git a/scripts/upgrade b/scripts/upgrade index e9588b7..d75e109 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -170,6 +170,7 @@ yunohost service add grafana-server --description="open source analytics and mon #================================================= ynh_script_progression --message="Restarting a systemd service..." --weight=2 +systemctl daemon-reload ynh_systemd_action --service_name=grafana-server --action="restart" --log_path="/var/log/grafana/grafana.log" --line_match="HTTP Server Listen" --timeout=600 #=================================================