From 1132aac73d14dcc90e498ea5408e6d7cab418bb2 Mon Sep 17 00:00:00 2001 From: Fabian Wilkens Date: Tue, 23 Nov 2021 21:14:39 +0100 Subject: [PATCH] Fix: install problem. Service line-match has changed --- scripts/install | 2 +- scripts/restore | 2 +- scripts/upgrade | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 349068d..3760472 100755 --- a/scripts/install +++ b/scripts/install @@ -325,7 +325,7 @@ ynh_systemd_action \ --service_name="$app-api-gateway" \ --action="start" \ --log_path="/var/log/$app/api-gateway.log" \ - --line_match='{"message":"Server started on port '$port_api_gateway'","level":"info"}' + --line_match='{"level":"info","message":"Server started on port '$port_api_gateway'"}' #================================================= # SETUP FAIL2BAN diff --git a/scripts/restore b/scripts/restore index ddeb598..83db97f 100755 --- a/scripts/restore +++ b/scripts/restore @@ -226,7 +226,7 @@ ynh_systemd_action \ --service_name="$app-api-gateway" \ --action="start" \ --log_path="/var/log/$app/api-gateway.log" \ - --line_match='{"message":"Server started on port '$port_api_gateway'","level":"info"}' + --line_match='{"level":"info","message":"Server started on port '$port_api_gateway'"}' #================================================= # RESTORE THE LOGROTATE CONFIGURATION diff --git a/scripts/upgrade b/scripts/upgrade index 6f19bd1..1ca61fc 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -552,7 +552,7 @@ ynh_systemd_action \ --service_name="$app-api-gateway" \ --action="start" \ --log_path="/var/log/$app/api-gateway.log" \ - --line_match='{"message":"Server started on port '$port_api_gateway'","level":"info"}' + --line_match='{"level":"info","message":"Server started on port '$port_api_gateway'"}' #================================================= # SETUP FAIL2BAN