imapfilter/scripts/entryPoint.sh

13 lines
295 B
Bash
Raw Normal View History

2024-01-09 22:01:54 +01:00
#!/bin/bash
2024-01-10 20:46:12 +01:00
export IMAPFILTER_HOME=/home/imapfilter/
2024-01-09 22:01:54 +01:00
if [ ! -e ${IMAPFILTER_HOME}/config.lua ]; then
2024-01-10 20:46:12 +01:00
echo "please provide a config.lua from a configmap or bindmount to ${IMAPFILTER_HOME}/config.lua"
2024-01-09 22:01:54 +01:00
exit 255
fi
while [ 1 -eq 1 ]; do
imapfilter -l /dev/stdout -v
sleep 500
done