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