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.