use absolute path for awk in trying to bring back quotas. See #1008

This commit is contained in:
Antoine Beaupré 2008-04-15 21:31:06 +00:00
parent 83be236897
commit 8aca1730ec
1 changed files with 1 additions and 1 deletions

View File

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