]> andersk Git - moira.git/blame - gen/ip-billing.sh
Include private subnets and hosts on unbilled networks in feed to
[moira.git] / gen / ip-billing.sh
CommitLineData
fd59a590 1#!/bin/sh
2#
3# $Header: /afs/athena.mit.edu/astaff/project/moiradev/repository/moira/gen/stel
4lar.sh,v 1.1 2002/01/18 06:54:45 zacheiss Exp $
5
6PATH=/usr/bin:/bin:/usr/sbin:/sbin
7
8if [ -d /var/athena ] && [ -w /var/athena ]; then
9 exec >/var/athena/moira_update.log 2>&1
10else
11 exec >/tmp/moira_update.log 2>&1
12fi
13
14# The following exit codes are defined and MUST BE CONSISTENT with the
15# error codes the library uses:
16MR_MISSINGFILE=47836473
17MR_TARERR=47836476
18
19OUTFILE=/var/tmp/ip-billing.out
20
21# Alert if the output file doesn't exist
22test -r $OUTFILE || exit $MR_MISSINGFILE
23
24# unpack the file
25(cd /var/tmp && tar xf $OUTFILE) || exit $MR_TARERR
26
27# cleanup
28rm -f $OUTFILE
29test -f $0 && rm -f $0
30
31exit 0
This page took 0.072493 seconds and 5 git commands to generate.