Revision 23740,
737 bytes
checked in by broder, 16 years ago
(diff) |
In moira:
* New CVS snapshot (Trac: #195)
* Drop patches that have been incorporated upstream.
* Update to build without krb4 on systems that no longer have it.
This doesn't build yet on squeeze, which lacks a krb4 library, but I'm
committing now before I start hacking away at a patch to fix that.
|
Rev | Line | |
---|
[23095] | 1 | #!/bin/sh |
---|
[23740] | 2 | # $Id: winstats.sh,v 1.4 2003-12-16 20:51:00 zacheiss Exp $ |
---|
[23095] | 3 | |
---|
| 4 | dir=/var/ops/populate/stats |
---|
| 5 | tarfile=/var/tmp/winstats.out |
---|
| 6 | |
---|
| 7 | PATH="/etc:/bin:/usr/bin:/usr/etc:/usr/athena/etc" |
---|
| 8 | |
---|
| 9 | if [ -d /var/athena ] && [ -w /var/athena ]; then |
---|
| 10 | exec >/var/athena/moira_update.log 2>&1 |
---|
| 11 | else |
---|
| 12 | exec >/tmp/moira_update.log 2>&1 |
---|
| 13 | fi |
---|
| 14 | |
---|
| 15 | # The following exit codes are defined and MUST BE CONSISTENT with the |
---|
| 16 | # error codes the library uses: |
---|
| 17 | MR_MISSINGFILE=47836473 |
---|
| 18 | MR_TARERR=47836476 |
---|
| 19 | |
---|
| 20 | if [ ! -f $tarfile ]; then |
---|
| 21 | exit $MR_MISSINGFILE |
---|
| 22 | fi |
---|
| 23 | |
---|
| 24 | cd $dir |
---|
| 25 | tar xf $tarfile |
---|
| 26 | |
---|
| 27 | if [ $? != 0 ]; then |
---|
| 28 | exit $MR_TARERR; |
---|
| 29 | fi |
---|
| 30 | |
---|
| 31 | chmod 644 containers machine mcntmap |
---|
| 32 | |
---|
| 33 | # load the data. This sends mail if it fails. |
---|
| 34 | $dir/winstats-load.pl |
---|
| 35 | |
---|
| 36 | rm -f $tarfile |
---|
| 37 | rm -f $0 |
---|
| 38 | exit 0 |
---|
| 39 | |
---|
| 40 | |
---|
Note: See
TracBrowser
for help on using the repository browser.