Revision 23740,
701 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 | # $Id: tsm.sh,v 1.2 2007-07-03 19:22:09 zacheiss Exp $ |
---|
3 | |
---|
4 | outfile=/tsm-mit/data/tsmlists |
---|
5 | loadprog=/tsm-mit/bin/loadAdminTable.pl |
---|
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_MKCRED=47836474 |
---|
19 | |
---|
20 | if [ ! -f $outfile ]; then |
---|
21 | exit $MR_MISSINGFILE |
---|
22 | fi |
---|
23 | |
---|
24 | if [ ! -x $loadprog ]; then |
---|
25 | exit $MR_MISSINGFILE |
---|
26 | fi |
---|
27 | |
---|
28 | $loadprog |
---|
29 | |
---|
30 | # Ignore exit status from $loadprog for now. |
---|
31 | #if [ $? != 0 ]; then |
---|
32 | # exit $MR_MKCRED |
---|
33 | #fi |
---|
34 | |
---|
35 | exit 0 |
---|
Note: See
TracBrowser
for help on using the repository browser.