From 19a193ef11f24ff9396d492ed4c67282cb285da4 Mon Sep 17 00:00:00 2001 From: JoHartmann Date: Sun, 12 Feb 2017 17:56:49 +0100 Subject: [PATCH] Update quota2percent_ to V17.0213 fixed some slips --- plugins/disk/quota2percent_ | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/plugins/disk/quota2percent_ b/plugins/disk/quota2percent_ index a3b66cb1..0038e05c 100644 --- a/plugins/disk/quota2percent_ +++ b/plugins/disk/quota2percent_ @@ -48,10 +48,13 @@ I<<< ln -s //quota2percent_ quota2percent_sdb1 >>> =head1 VERSION -17.0210 +17.0213 =head1 HISTORY +V17.0213 + + fix some slips V17.0210 add env.humanid @@ -88,12 +91,12 @@ GPLv2 (L) if [ "$1" = "autoconf" ]; then if ! repquota -V &> /dev/null ; then echo "no ('requota' executable is missing)" - exit 127 + exit 0 fi if ! df "/dev/${0##*_}" &> /dev/null; then - echo "no (device /dev/${0##*_} does not exist!)" >&2 - exit 128 + echo "no (device /dev/${0##*_} does not exist!)" + exit 0 fi echo yes @@ -193,9 +196,7 @@ GPLv2 (L) Quota=( ${Quotas[$i]} ) UserName=${Quota[0]} Passwd=$(grep "$UserName" /etc/passwd) - OLDIFS=$IFS IFS=':' Infos=($Passwd) - IFS=$OLDIFS UserInfo=${Infos[4]} UserInfo=${UserInfo%%,*}