From a492a33ae8f4916257b5bf197b14c1368a02ae95 Mon Sep 17 00:00:00 2001 From: Bastien Laine Date: Mon, 25 May 2026 15:13:12 +0200 Subject: [PATCH] Add Systemd support to f2b-ui action --- internal/config/settings.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/config/settings.go b/internal/config/settings.go index a8e4160..7e429f4 100644 --- a/internal/config/settings.go +++ b/internal/config/settings.go @@ -229,7 +229,10 @@ actionban = /usr/bin/curl__CURL_INSECURE_FLAG__ -X POST __CALLBACK_URL__/api/ban --arg jail '' \ --arg hostname '' \ --arg failures '' \ - --arg logs "$(tac | grep -wF )" \ + --arg logs "$(if [ '' = 'systemd' ]; \ + then journalctl -r ; \ + else tac ; \ + fi | grep -wF )" \ '{serverId: $serverId, ip: $ip, jail: $jail, hostname: $hostname, failures: $failures, logs: $logs}')" # Executes a cURL request to notify our API when an IP is unbanned.