]> andersk Git - moira.git/blob - gen/ip-billing.sh
Include private subnets and hosts on unbilled networks in feed to
[moira.git] / gen / ip-billing.sh
1 #!/bin/sh
2
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 $
5
6 PATH=/usr/bin:/bin:/usr/sbin:/sbin
7
8 if [ -d /var/athena ] && [ -w /var/athena ]; then
9     exec >/var/athena/moira_update.log 2>&1
10 else 
11     exec >/tmp/moira_update.log 2>&1
12 fi
13
14 # The following exit codes are defined and MUST BE CONSISTENT with the 
15 # error codes the library uses:
16 MR_MISSINGFILE=47836473
17 MR_TARERR=47836476
18
19 OUTFILE=/var/tmp/ip-billing.out
20
21 # Alert if the output file doesn't exist
22 test -r $OUTFILE || exit $MR_MISSINGFILE
23
24 # unpack the file
25 (cd /var/tmp && tar xf $OUTFILE) || exit $MR_TARERR
26
27 # cleanup
28 rm -f $OUTFILE
29 test -f $0 && rm -f $0
30
31 exit 0
This page took 0.039854 seconds and 5 git commands to generate.