3 # $Header: /afs/athena.mit.edu/astaff/project/moiradev/repository/moira/gen/stel
4 lar.sh,v 1.1 2002/01/18 06:54:45 zacheiss Exp $
6 PATH=/usr/bin:/bin:/usr/sbin:/sbin
8 if [ -d /var/athena ] && [ -w /var/athena ]; then
9 exec >/var/athena/moira_update.log 2>&1
11 exec >/tmp/moira_update.log 2>&1
14 # The following exit codes are defined and MUST BE CONSISTENT with the
15 # error codes the library uses:
16 MR_MISSINGFILE=47836473
19 OUTFILE=/var/tmp/ip-billing.out
21 # Alert if the output file doesn't exist
22 test -r $OUTFILE || exit $MR_MISSINGFILE
25 (cd /var/tmp && tar xf $OUTFILE) || exit $MR_TARERR
29 test -f $0 && rm -f $0