#!/usr/bin/with-contenv bash

set -eo pipefail

if [ ! -z "$DISABLE_CLAMAV" ]; then
   echo "* ClamAV disabled"
else
  /healthcheck/clamd.sh
fi

if [ ! -z "$DISABLE_RSPAMD" ]; then
   echo "* RSPAMD disabled"
else
  /healthcheck/rspamd.sh
fi

/healthcheck/cron.sh
/healthcheck/dovecot.sh
/healthcheck/nginx.sh
/healthcheck/p0f.sh
/healthcheck/php-fpm.sh
/healthcheck/redis.sh
/healthcheck/smtp.sh
/healthcheck/submission.sh
