]> andersk Git - moira.git/blame - gen/tsm.sh
tsm.sh and Makefile.in goo to install it.
[moira.git] / gen / tsm.sh
CommitLineData
78707c92 1#!/bin/sh
2# $Id$
3
4outfile=/tsm-mit/data/tsmlists
5loadprog=/tsm-mit/bin/loadAdminTable.pl
6
7PATH="/etc:/bin:/usr/bin:/usr/etc:/usr/athena/etc"
8
9if [ -d /var/athena ] && [ -w /var/athena ]; then
10 exec >/var/athena/moira_update.log 2>&1
11else
12 exec >/tmp/moira_update.log 2>&1
13fi
14
15# The following exit codes are defined and MUST BE CONSISTENT with the
16# error codes the library uses:
17MR_MISSINGFILE=47836473
18MR_MKCRED=47836474
19
20if [ ! -f $outfile ]; then
21 exit $MR_MISSINGFILE
22fi
23
24if [ ! -x $loadprog ]; then
25 exit $MR_MISSINGFILE
26fi
27
28$loadprog
29
30if [ $? != 0 ]; then
31 exit $MR_MKCRED
32fi
33
34exit 0
This page took 0.0594 seconds and 5 git commands to generate.