clamdcheck.sh 214 B

1234567891011121314
  1. #!/bin/sh
  2. set -eu
  3. if [ "${CLAMAV_NO_CLAMD:-}" != "false" ]; then
  4. if [ "$(echo "PING" | nc localhost 3310)" != "PONG" ]; then
  5. echo "ERROR: Unable to contact server"
  6. exit 1
  7. fi
  8. echo "Clamd is up"
  9. fi
  10. exit 0