Revision 24319,
673 bytes
checked in by broder, 15 years ago
(diff) |
New Moira snapshot from SVN.
|
Rev | Line | |
---|
[23095] | 1 | #!/bin/csh -f |
---|
| 2 | # |
---|
| 3 | # This script sets the quota for a uid on a filesystem. |
---|
| 4 | |
---|
| 5 | set 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. |
---|
| 10 | if ( -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 |
---|
| 22 | endif |
---|
| 23 | |
---|
| 24 | exit 0 |
---|
| 25 | |
---|
| 26 | # |
---|
[24319] | 27 | # $HeadURL: svn+ssh://svn.mit.edu/moira/trunk/moira/gen/install_quotas $ $Id: install_quotas 3956 2010-01-05 20:56:56Z zacheiss $ |
---|
[23095] | 28 | # |
---|
Note: See
TracBrowser
for help on using the repository browser.