blob: 7884d48a95eac59bacf24b134e7a415fa6e4311d [file] [log] [blame]
Matthias Andreas Benkard9dabdab2024-03-06 13:12:09 +01001#!/bin/sh
2
3set -eu
4
5if [ "${CLAMAV_NO_CLAMD:-}" != "false" ]; then
6 if [ "$(echo "PING" | nc localhost 3310)" != "PONG" ]; then
7 echo "ERROR: Unable to contact server"
8 exit 1
9 fi
10
11 echo "Clamd is up"
12fi
13
14exit 0