tbrehm
2009-06-12 8e89f8c35ae710c29a87b4f923fc225c6b2708bf
Fixed getmail error in log when no getmail accounts had been created.
1 files deleted
1 files modified
8 ■■■■■ changed files
server/scripts/getmail.sh 2 ●●●●● patch | view | raw | blame | history
server/scripts/run-getmail.sh 6 ●●●● patch | view | raw | blame | history
server/scripts/getmail.sh
File was deleted
server/scripts/run-getmail.sh
@@ -3,7 +3,11 @@
cd /etc/getmail
rcfiles=""
for file in *.conf ; do
if [ $file != "*.conf" ]; then
rcfiles="$rcfiles -r $file"
fi
done
#echo $rcfiles
exec /usr/bin/getmail -n -v -g /etc/getmail $rcfiles
if [ "$rcfiles" != "" ]; then
exec /usr/bin/getmail -n -v -g /etc/getmail $rcfiles
fi