Changeset 1568

Show
Ignore:
Timestamp:
05/04/06 03:53:08 (2 years ago)
Author:
benjamin
Message:

quota_edit.sh now computes DATA_PART as quota_get.sh does. Closes #651

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • alternc/trunk/src/quota_edit.sh

    r1026 r1568  
    11#!/bin/sh 
    22. /etc/alternc/local.sh 
    3 /usr/sbin/setquota -r -g $1 $2 $2 0 0 $ALTERNC_LOC 2>/dev/null || echo "Group quota are not enabled on /var/alternc." >&2 
     3DATA_PART=`df ${ALTERNC_LOC} 2>/dev/null | awk '/^\// { print $1 }'` 
     4/usr/sbin/setquota -r -g $1 $2 $2 0 0 $DATA_PART 2>/dev/null || echo "Group quota are not enabled on /var/alternc." >&2