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

This commit is contained in:
Benjamin Sonntag 2006-05-04 01:53:08 +00:00
parent 4483f08aa0
commit ec89f13dfc
1 changed files with 2 additions and 1 deletions

View File

@ -1,3 +1,4 @@
#!/bin/sh
. /etc/alternc/local.sh
/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
DATA_PART=`df ${ALTERNC_LOC} 2>/dev/null | awk '/^\// { print $1 }'`
/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