root/alternc/tags/0.9.7/src/quota_edit.sh

Revision 1833, 228 bytes (checked in by anarcat, 2 years ago)

use absolute path for df

Closes: #1048

  • Property svn:executable set to *
Line 
1 #!/bin/sh
2 . /etc/alternc/local.sh
3 DATA_PART=`/bin/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
Note: See TracBrowser for help on using the browser.