Revision 24319,
588 bytes
checked in by broder, 15 years ago
(diff) |
New Moira snapshot from SVN.
|
-
Property svn:executable set to
*
|
Rev | Line | |
---|
[23095] | 1 | #!/bin/sh |
---|
| 2 | |
---|
| 3 | if [ -d /var/athena ] && [ -w /var/athena ]; then |
---|
| 4 | exec >/var/athena/moira_update.log 2>&1 |
---|
| 5 | else |
---|
| 6 | exec >/tmp/moira_update.log 2>&1 |
---|
| 7 | fi |
---|
| 8 | |
---|
| 9 | root=/usr/local/nic/db |
---|
| 10 | PATH=/sbin:/bin:root/bin |
---|
| 11 | |
---|
| 12 | if [ ! -r $root/data/moira.input ]; then |
---|
| 13 | echo "no data found" |
---|
| 14 | exit 1 |
---|
| 15 | fi |
---|
| 16 | |
---|
| 17 | echo `date` loading database >> /var/log/dbload |
---|
| 18 | $root/bin/moirain $root/data/moira.input >> /var/log/dbload 2>&1 |
---|
| 19 | if [ $? != 0 ]; then |
---|
| 20 | exit $MR_MKCRED |
---|
| 21 | fi |
---|
| 22 | |
---|
| 23 | rm -f $0 |
---|
| 24 | exit 0 |
---|
| 25 | |
---|
[24319] | 26 | # $HeadURL: svn+ssh://svn.mit.edu/moira/trunk/moira/gen/ndb.sh $ $Id: ndb.sh 3956 2010-01-05 20:56:56Z zacheiss $ |
---|
Note: See
TracBrowser
for help on using the repository browser.