install-eg.sh: fix error in tarball download
[sitka/sitka-tools.git] / maintenance / update-offline-blocked-list.sh
1 #!/bin/bash
2 OFFLINEDIR='/srv/openils/var/data/offline'
3 TODAY=`date --rfc-3339=date`
4 /srv/openils/bin/offline-blocked-list.pl --config /srv/openils/conf/opensrf_core.xml --requestor /srv/openils/bin/oils_requestor > $OFFLINEDIR/blocked/patron-block-list.$TODAY.txt
5 if [ -e "$OFFLINEDIR/blocked/patron-block-list.txt" ] ; then rm $OFFLINEDIR/blocked/patron-block-list.txt ; fi
6 cd $OFFLINEDIR/blocked/ && ln -s patron-block-list.$TODAY.txt patron-block-list.txt