source: trunk/third/moira/gen/ndb.sh @ 23740

Revision 23740, 598 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.
  • Property svn:executable set to *
Line 
1#!/bin/sh
2
3if [ -d /var/athena ] && [ -w /var/athena ]; then
4    exec >/var/athena/moira_update.log 2>&1
5else
6    exec >/tmp/moira_update.log 2>&1
7fi
8 
9root=/usr/local/nic/db
10PATH=/sbin:/bin:root/bin
11 
12if [ ! -r $root/data/moira.input ]; then
13        echo "no data found"
14        exit 1
15fi
16 
17echo `date` loading database >> /var/log/dbload
18$root/bin/moirain $root/data/moira.input >> /var/log/dbload 2>&1
19if [ $? != 0 ]; then
20        exit $MR_MKCRED
21fi
22 
23rm -f $0
24exit 0
25
26# $Header: /afs/athena.mit.edu/astaff/project/moiradev/repository/moira/gen/ndb.sh,v 1.2 2000-05-08 18:30:30 zacheiss Exp $
Note: See TracBrowser for help on using the repository browser.