source: trunk/third/moira/gen/install_quotas @ 23740

Revision 23740, 767 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.
Line 
1#!/bin/csh -f
2#
3# This script sets the quota for a uid on a filesystem.
4
5set dev=$1
6
7# Checking for /etc/enforce_quota is transitional code and should be
8# removed when the Moira database has an accurate understanding of what
9# everyone's quotas are.
10if ( -f /etc/enforce_quota ) then
11   while (1)
12      # set args = $< will NOT work.  $< will be treated as a single word
13      set args = `echo $<`
14
15      if (${#args} != 2) break
16
17      set uid = $args[1]
18      set quota = $args[2]
19
20      setquota $dev $uid $quota
21   end
22endif
23
24exit 0
25
26#
27#       $Source: /afs/athena.mit.edu/astaff/project/moiradev/repository/moira/gen/install_quotas,v $
28#       $Header: /afs/athena.mit.edu/astaff/project/moiradev/repository/moira/gen/install_quotas,v 1.4 1998-01-07 17:13:18 danw Exp $
29#
Note: See TracBrowser for help on using the repository browser.