Files
clamav/dockerfiles/clamdcheck.sh
Olliver Schinagl 24b3ae27b3 Docker: Add initial dockerfile
This dockerfile allows users/services compile the current codebase and
use the container as a dockerized clamav daemon.

Useful for testing, but also for running clamd containerized.

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
2021-04-27 20:39:38 +02:00

15 lines
214 B
Bash
Executable File

#!/bin/sh
set -eu
if [ "${CLAMAV_NO_CLAMD:-}" != "false" ]; then
if [ "$(echo "PING" | nc localhost 3310)" != "PONG" ]; then
echo "ERROR: Unable to contact server"
exit 1
fi
echo "Clamd is up"
fi
exit 0