From 24f38b424a3d12c7f4fac1829c83725b200b1e97 Mon Sep 17 00:00:00 2001 From: vogelor <vogelor@ispconfig3> Date: Wed, 26 May 2010 05:42:11 -0400 Subject: [PATCH] Enhancement of the Website-List. The user can only select the server as filter, he has some sites at (and not ALL Servers of the server-farm) --- server/scripts/run-getmail.sh | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/server/scripts/run-getmail.sh b/server/scripts/run-getmail.sh index 998ecab..048e04a 100644 --- a/server/scripts/run-getmail.sh +++ b/server/scripts/run-getmail.sh @@ -1,4 +1,5 @@ #!/bin/sh +PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin set -e cd /etc/getmail rcfiles="" @@ -8,6 +9,12 @@ fi done #echo $rcfiles -if [ "$rcfiles" != "" ]; then -exec /usr/bin/getmail -n -v -g /etc/getmail $rcfiles +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