Commit 8e89f8c3 authored by tbrehm's avatar tbrehm
Browse files

Fixed getmail error in log when no getmail accounts had been created.

parent e92a24a4
#!/bin/bash
getmail -g /etc/getmail/ -r /etc/getmail/*.conf
\ No newline at end of file
......@@ -3,7 +3,11 @@ set -e
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
\ No newline at end of file
if [ "$rcfiles" != "" ]; then
exec /usr/bin/getmail -n -v -g /etc/getmail $rcfiles
fi
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment