imapfilter/scripts/entryPoint.sh
Dominik Meyer ad9f7c30d6
All checks were successful
continuous-integration/drone Build is passing
ADD: run imapfilter as a user not root
2024-01-10 20:46:12 +01:00

13 lines
295 B
Bash
Executable File

#!/bin/bash
export IMAPFILTER_HOME=/home/imapfilter/
if [ ! -e ${IMAPFILTER_HOME}/config.lua ]; then
echo "please provide a config.lua from a configmap or bindmount to ${IMAPFILTER_HOME}/config.lua"
exit 255
fi
while [ 1 -eq 1 ]; do
imapfilter -l /dev/stdout -v
sleep 500
done