From 23dacb558561cce35e9dedc1d6a966a2d40e1d97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Sat, 10 Feb 2018 18:04:23 +0100 Subject: [PATCH] Use ynh_check_starting in each script --- scripts/change_url | 3 ++- scripts/install | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/change_url b/scripts/change_url index 4e5ff47..46ad532 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -73,4 +73,5 @@ config_nginx config_gogs # RELOAD services -systemctl restart "$app".service +ynh_check_starting "INFO] Listen: http://0.0.0.0:" "/var/log/$app/gogs.log" +sleep 1 \ No newline at end of file diff --git a/scripts/install b/scripts/install index 1578c52..bf80bd4 100644 --- a/scripts/install +++ b/scripts/install @@ -104,4 +104,5 @@ yunohost service add "$app" --log "/var/log/$app/$app.log" ynh_use_logrotate "/var/log/$app" # Reload services -systemctl restart "$app".service +ynh_check_starting "INFO] Listen: http://0.0.0.0:" "/var/log/$app/gogs.log" +sleep 1