use absolute path for df

Closes: #1048
This commit is contained in:
Antoine Beaupré 2007-05-31 17:03:47 +00:00
parent a31ab1ce96
commit 7a0f1d57c4
1 changed files with 1 additions and 1 deletions

View File

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