From 2e961201be67cc348e7da22ad7c32c87c9f3d30d Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Tue, 11 May 2010 07:00:08 -0400 Subject: [PATCH] Fixed: FS#1186 - Error in Installer r1728 --- server/scripts/run-getmail.sh | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/server/scripts/run-getmail.sh b/server/scripts/run-getmail.sh index fab297d..048e04a 100644 --- a/server/scripts/run-getmail.sh +++ b/server/scripts/run-getmail.sh @@ -1,9 +1,20 @@ #!/bin/sh +PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin 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 [ -f /tmp/.getmail_lock ]; then + echo 'Found getmail lock file /tmp/.getmail_lock, we quit here.' +else + touch /tmp/.getmail_lock + if [ "$rcfiles" != "" ]; then + /usr/bin/getmail -n -v -g /etc/getmail $rcfiles + fi + rm -f /tmp/.getmail_lock +fi \ No newline at end of file -- Gitblit v1.9.1