quota_edit.sh now computes DATA_PART as quota_get.sh does. Closes #651
This commit is contained in:
parent
4483f08aa0
commit
ec89f13dfc
|
@ -1,3 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
. /etc/alternc/local.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
|
||||||
|
|
Loading…
Reference in New Issue