1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/sonarr_ynh.git synced 2024-09-03 20:26:19 +02:00

Update scripts/restore

This commit is contained in:
Alexandre Aubin 2023-12-02 01:48:42 +01:00 committed by Félix Piédallu
parent 4255fb6ea5
commit 89dd613992

View file

@ -56,7 +56,7 @@ ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --l
# If a first Sonarr app was running before installing this one,
# it may have been stopped by the installation of the dependencies.
# Let's restart it.
if [[ $(systemctl list-units -all | grep 'sonarr.service' | grep 'inactive') ]]; then
if ! systemctl is-active $app.service; then
ynh_exec_fully_quiet ynh_systemd_action --service_name=sonarr --action="start" --log_path="systemd" --line_match="Starting Web Server" --timeout=30
fi