Revision 23740,
914 bytes
checked in by broder, 15 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 | |
---|
3 | # $Id: longjobs.sh,v 1.1 2001-08-25 12:06:37 zacheiss Exp $ |
---|
4 | |
---|
5 | # Wrapper script to install the groups file output by moira, and update |
---|
6 | # the quota database for current group membership. |
---|
7 | |
---|
8 | spooldir=/var/spool/pbs |
---|
9 | spool_etcdir=$spooldir/etc |
---|
10 | exec_prefix=/usr/pbs |
---|
11 | sbindir=${exec_prefix}/sbin |
---|
12 | update_group=${sbindir}/update_group |
---|
13 | groups=${spool_etcdir}/groups |
---|
14 | quotadb=${spool_etcdir}/quotadb |
---|
15 | |
---|
16 | if [ -d /var/athena ] && [ -w /var/athena ]; then |
---|
17 | exec >/var/athena/moira_update.log 2>&1 |
---|
18 | else |
---|
19 | exec >/tmp/moira_update.log 2>&1 |
---|
20 | fi |
---|
21 | |
---|
22 | # The following exit codes are defined and MUST BE CONSISTENT with the |
---|
23 | # error codes the library uses: |
---|
24 | MR_MISSINGFILE=47836473 |
---|
25 | MR_MKCRED=47836474 |
---|
26 | |
---|
27 | test -r ${groups}.out || exit $MR_MISSINGFILE |
---|
28 | |
---|
29 | if [ -s ${groups}.out ]; then |
---|
30 | mv ${groups}.out $groups |
---|
31 | ${update_group} -d $quotadb -a |
---|
32 | if [ $? != 0 ]; then |
---|
33 | exit $MR_MKCRED |
---|
34 | fi |
---|
35 | fi |
---|
36 | |
---|
37 | # cleanup |
---|
38 | test -f $0 && rm -f $0 |
---|
39 | |
---|
40 | exit 0 |
---|
Note: See
TracBrowser
for help on using the repository browser.