Gitiles
Code Review
Sign In
gerrit.benkard.de
/
kubeia
/
c16ac0f1fc97e0dbf3814056e4e3935c0f4d117c
/
.
/
mailcow
/
src
/
mailcow-dockerized
/
data
/
Dockerfiles
/
clamd
/
clamdcheck.sh
blob: e7e53a65f53b0fd19e256aeb4f582f0e9e627404 [
file
] [
log
] [
blame
]
#!/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