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

Merge pull request #47 from YunoHost-Apps/testing

Fix Bullseye
This commit is contained in:
yalh76 2022-02-08 00:59:29 +01:00 committed by GitHub
commit 993c3b904f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 0 deletions

View file

@ -126,6 +126,7 @@ fi
#================================================= #=================================================
ynh_script_progression --message="Starting a systemd service..." --weight=2 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 ynh_systemd_action --service_name=grafana-server --action="start" --log_path="/var/log/grafana/grafana.log" --line_match="HTTP Server Listen" --timeout=600
#================================================= #=================================================

View file

@ -173,6 +173,7 @@ sed -i "/^\[database\]$/,/^\[/ {
ynh_store_file_checksum --file="$grafana_conf" ynh_store_file_checksum --file="$grafana_conf"
# Start Grafana and wait for it to be fully started # 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 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 # 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 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 ynh_systemd_action --service_name=grafana-server --action="restart" --log_path="/var/log/grafana/grafana.log" --line_match="HTTP Server Listen" --timeout=600
#================================================= #=================================================

View file

@ -110,6 +110,7 @@ ynh_script_progression --message="Starting a systemd service..." --weight=1
systemctl enable influxdb.service --quiet systemctl enable influxdb.service --quiet
systemctl enable grafana-server.service --quiet systemctl enable grafana-server.service --quiet
systemctl daemon-reload
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" --line_match="HTTP Server Listen" --timeout=600 ynh_systemd_action --service_name=grafana-server --action="start" --log_path="/var/log/grafana/grafana.log" --line_match="HTTP Server Listen" --timeout=600

View file

@ -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 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 ynh_systemd_action --service_name=grafana-server --action="restart" --log_path="/var/log/grafana/grafana.log" --line_match="HTTP Server Listen" --timeout=600
#================================================= #=================================================