[Watchdog] Fix for Rspamd 2.0

This commit is contained in:
andryyy
2019-10-12 13:15:36 +02:00
parent ee57b5921f
commit 0089f72f3d
3 changed files with 8 additions and 11 deletions

View File

@@ -518,7 +518,7 @@ rspamd_checks() {
From: watchdog@localhost
Empty
' | usr/bin/curl -s --data-binary @- --unix-socket /var/lib/rspamd/rspamd.sock http://rspamd/scan | jq -rc .required_score)
' | usr/bin/curl -s --data-binary @- --unix-socket /var/lib/rspamd/rspamd.sock http://rspamd/scan | jq -rc .default.required_score)
if [[ ${SCORE} != "9999" ]]; then
echo "Rspamd settings check failed" 2>> /tmp/rspamd-mailcow 1>&2
err_count=$(( ${err_count} + 1))