From 89e4329a8068e3631d3f64f6896fa3907c687cf5 Mon Sep 17 00:00:00 2001 From: Marius Cramer <m.cramer@pixcept.de> Date: Thu, 08 Jan 2015 09:08:50 -0500 Subject: [PATCH] Layout fix: tab toggle and monitor tables --- server/scripts/run-getmail.sh | 15 +++++++++++++-- 1 files changed, 13 insertions(+), 2 deletions(-) diff --git a/server/scripts/run-getmail.sh b/server/scripts/run-getmail.sh index fab297d..81f897a 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 -rcfiles="$rcfiles -r $file" + 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 -v -g /etc/getmail $rcfiles || true + fi + rm -f /tmp/.getmail_lock +fi -- Gitblit v1.9.1