Bugfixing quotas scirpt to source local.sh
This commit is contained in:
parent
cab8cc17d3
commit
05c3e9ce5e
|
@ -11,6 +11,8 @@ SED=/bin/sed
|
||||||
QUOTA=/usr/sbin/setquota
|
QUOTA=/usr/sbin/setquota
|
||||||
DF=/bin/df
|
DF=/bin/df
|
||||||
|
|
||||||
|
source /etc/alternc/local.sh
|
||||||
|
|
||||||
#checking if quotas are installed
|
#checking if quotas are installed
|
||||||
command -v $QUOTA >/dev/null || { echo "Quotas uninstalled"; exit 1; }
|
command -v $QUOTA >/dev/null || { echo "Quotas uninstalled"; exit 1; }
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,7 @@ WC=/usr/bin/wc
|
||||||
BLKID=/sbin/blkid
|
BLKID=/sbin/blkid
|
||||||
MID=$1
|
MID=$1
|
||||||
|
|
||||||
|
source /etc/alternc/local.sh
|
||||||
|
|
||||||
if [ "x$MID" == "x" ] ; then
|
if [ "x$MID" == "x" ] ; then
|
||||||
echo "Usage: quota_get <uid>"
|
echo "Usage: quota_get <uid>"
|
||||||
|
|
Loading…
Reference in New Issue