PGUSER = evergreen
PGDATABASE = evergreen
PGHOST = localhost # change for cluster install
+# Uncomment on production to generate email alerts for certain actions
+# EG_UTIL_NOTIFY = 1
# hold targeter
*/1 * * * * . ~/.bashrc && $EG_BIN/hold_targeter.pl $SRF_CORE 2> /dev/null
#!/bin/bash
-
# Script to change item copy locations so that the
# copy location owning library matches the item's circ library
+
psql -U evergreen < fix_copy_locations.sql > log.fix_copy_locations
-#cat log.fix_copy_locations | mailx -s "Copy location fix report" bbonner@kcls.org,mcarlson@kcls.org
+
+if [ -n "$EG_UTIL_NOTIFY" ]; then
+ cat log.fix_copy_locations \
+ | mailx -s "Copy location fix report" \
+ bbonner@kcls.org,mcarlson@kcls.org
+fi
#!/bin/bash
-
# Script to delete empty volumes, i.e., non-located-URI
# acns that have no non-deleted copies linked to them
psql -U evergreen < del_all_empty_vols.sql > log.del_all_empty_volumes
-# TODO: un-comment on prod util server only
-#cat log.del_all_empty_volumes \
-# | mailx -s "Empty volume deletion report" \
-# bbonner@kcls.org,mcarlson@kcls.org
+
+if [ -n "$EG_UTIL_NOTIFY" ]; then
+ cat log.del_all_empty_volumes \
+ | mailx -s "Empty volume deletion report" \
+ bbonner@kcls.org,mcarlson@kcls.org
+fi
#!/bin/bash
-
# Script to inactive patron cards, per HS#18506
psql -U evergreen < remove_inactive_patron_cards.sql > log.remove_inactive_patron_cards
-# TODO: un-comment on production util server only
-#cat log.remove_inactive_patron_cards \
-# | mailx -s "Inactive patron card deletion report" \
-# bbonner@kcls.org,mcarlson@kcls.org,ebooks@kcls.org
+
+if [ -n "$EG_UTIL_NOTIFY" ]; then
+ cat log.remove_inactive_patron_cards \
+ | mailx -s "Inactive patron card deletion report" \
+ bbonner@kcls.org,mcarlson@kcls.org,ebooks@kcls.org
+fi