]> andersk Git - moira.git/blobdiff - gen/install_quotas
Reimplement events.gen as a Pro*C application.
[moira.git] / gen / install_quotas
index c91953f470a58840c5fd0e334e210ae9c3db5d52..0073e5e5c46be8ab33ae19e9812f06fe2a93afb7 100644 (file)
@@ -1,24 +1,23 @@
 #!/bin/csh -f
 #
-# This script sets the quota for a uid on a filesystem. 
+# This script sets the quota for a uid on a filesystem.
 
 set dev=$1
 
-# Checking for /etc/enforce_quota is transitional code and should be 
-# removed when the SMS database has an accurate understanding of what
+# Checking for /etc/enforce_quota is transitional code and should be
+# removed when the Moira database has an accurate understanding of what
 # everyone's quotas are.
 if ( -f /etc/enforce_quota ) then
    while (1)
       # set args = $< will NOT work.  $< will be treated as a single word
       set args = `echo $<`
+
       if (${#args} != 2) break
 
-      set uid = args[1]
-      set quota = args[2]
+      set uid = $args[1]
+      set quota = $args[2]
 
-      setquota -u $dev $uid $quota
-      if ($status) ### Soft failure
+      setquota $dev $uid $quota
    end
 endif
 
This page took 0.045323 seconds and 4 git commands to generate.