From cf19fb9466ca0d6cf9ed44e2652d6927ef90f562 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Sun, 28 Jan 2024 22:49:01 +0100 Subject: [PATCH] Cleanup debuggings --- scripts/change_url | 2 +- scripts/install | 5 +---- scripts/restore | 2 +- scripts/upgrade | 3 +-- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/scripts/change_url b/scripts/change_url index a18765d..546471e 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -32,7 +32,7 @@ ynh_change_url_nginx_config #================================================= ynh_script_progression --message="Starting a systemd service..." --weight=1 -ynh_systemd_action --service_name="$app" --action="start" --log_path="systemd" --line_match="pydio.gateway.websocket ready" +ynh_systemd_action --service_name="$app" --action="start" --log_path="systemd" #================================================= # END OF SCRIPT diff --git a/scripts/install b/scripts/install index 66d504b..c78cfe9 100755 --- a/scripts/install +++ b/scripts/install @@ -57,10 +57,7 @@ yunohost service add "$app" --description="File sharing platform" ynh_script_progression --message="Starting a systemd service..." --weight=1 # Start a systemd service -ynh_systemd_action --service_name="$app" --action="start" --log_path="systemd" --line_match="pydio.grpc.oauth ready" -sleep 60 - -ynh_exec_warn journalctl -xu "$app.service" +ynh_systemd_action --service_name="$app" --action="start" --log_path="systemd" #================================================= # END OF SCRIPT diff --git a/scripts/restore b/scripts/restore index 9fcfea9..ec770e5 100755 --- a/scripts/restore +++ b/scripts/restore @@ -53,7 +53,7 @@ yunohost service add "$app" --description="File sharing platform" #================================================= ynh_script_progression --message="Reloading NGINX web server and $app's service..." --weight=1 -ynh_systemd_action --service_name="$app" --action="start" --log_path="systemd" --line_match="pydio.gateway.websocket ready" +ynh_systemd_action --service_name="$app" --action="start" --log_path="systemd" ynh_systemd_action --service_name=nginx --action=reload #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 0855f96..80ceea3 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -54,8 +54,7 @@ yunohost service add "$app" --description="File sharing platform" #================================================= ynh_script_progression --message="Starting a systemd service..." --weight=1 -ynh_systemd_action --service_name="$app" --action="start" --log_path="systemd" --line_match="pydio.grpc.oauth ready" -sleep 60 +ynh_systemd_action --service_name="$app" --action="start" --log_path="systemd" ynh_exec_warn journalctl -xu "$app.service"