]> andersk Git - moira.git/blame - gen/ndb.sh
Build without krb4 if it's unavailable.
[moira.git] / gen / ndb.sh
CommitLineData
f0ef529a 1#!/bin/sh
f4f32185 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
f0ef529a 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$
This page took 0.077352 seconds and 5 git commands to generate.