preventing runs on sat and sun
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 20 Aug 2006 16:11:09 +0000 (16:11 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 20 Aug 2006 16:11:09 +0000 (16:11 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5613 dcc99617-32d9-48b4-a31d-7c20da2025e4

Evergreen/src/support-scripts/eg_gen_overdue.sh

index 54b9d17..17d789d 100755 (executable)
@@ -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"