]> andersk Git - moira.git/blobdiff - gen/zero_quotas
New database and column names for Moira2.
[moira.git] / gen / zero_quotas
index 14cba8f5bcfe856b7f138561fa57b0fafadd381c..02567907537cc3f597981413985adaa423799c71 100644 (file)
@@ -6,7 +6,7 @@
 # Note that the input must be sorted in increasing order by uid.
 
 set dev=$1
-set SMS_SETQUOTA = 47836471
+set MR_SETQUOTA = 47836471
 
 # Checking for /etc/zero_old_quotas allows us to release this program
 # one server at a time.
@@ -26,13 +26,13 @@ if ( -f /etc/zero_old_quotas ) then
 
       if (checksorted == 0) then 
        echo "Input not sorted"
-       exit $SMS_SETQUOTA
+       exit $MR_SETQUOTA
       endif
 
       # zero all quotas between current_uid and uid (not including uid)
       if ($current_uid != $uid) then
        @ uid_high = $uid - 1
-        setquota -r $dev $current_uid $uid_high $2
+        setquota -r $dev $current_uid $uid_high 0
       endif
 
      # skip over $uid
@@ -41,7 +41,7 @@ if ( -f /etc/zero_old_quotas ) then
    end
   
    # zero all remaining quotas, except for nobody (32767).
-   if ($current_uid != 32767) setquota -r $dev $current_uid 32766 $2
+   if ($current_uid != 32767) setquota -r $dev $current_uid 32766 0
    
 endif
 
This page took 0.185845 seconds and 4 git commands to generate.