From e9f449dff46832b1a3b62e8fcdb8181758502a86 Mon Sep 17 00:00:00 2001 From: erickson Date: Sun, 20 Aug 2006 16:11:09 +0000 Subject: [PATCH] preventing runs on sat and sun git-svn-id: svn://svn.open-ils.org/ILS/trunk@5613 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Evergreen/src/support-scripts/eg_gen_overdue.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Evergreen/src/support-scripts/eg_gen_overdue.sh b/Evergreen/src/support-scripts/eg_gen_overdue.sh index 54b9d17b83..17d789d735 100755 --- a/Evergreen/src/support-scripts/eg_gen_overdue.sh +++ b/Evergreen/src/support-scripts/eg_gen_overdue.sh @@ -14,8 +14,8 @@ BSCONFIG="/openils/conf/bootstrap.conf" source /etc/profile; ARGS="0" -# If today is monday, run for sat/sun/mon -if [ "$DAY" == "1" ]; then ARGS="2 1 0"; fi; +[ $DAY == 6 -o $DAY == 7 ] && exit 0; # don't run on saturday or sunday +if [ $DAY == 1 ]; then ARGS="2 1 0"; fi; # If today is monday, run for sat/sun/mon ./eg_gen_overdue.pl $BSCONFIG $ARGS > "/openils/var/web/tmp/overdue/EG_overdue.$DATE.xml" -- 2.43.2