rss2email/scripts/entryPoint.sh

19 lines
302 B
Bash
Executable File

#!/bin/bash
/createMSMTPconfig.sh
if [ -z ${RECIPIENTS} ]; then
echo "RECIPIENTS environment variable missing"
exit 255
fi
if [ -z ${FEEDS} ]; then
echo "FEEDS environment variable missing"
exit 255
fi
echo -e ${FEEDS} > ~/.rss2email/feeds.txt
/app/rss2email daemon ${RECIPIENTS}