diff --git a/utils/libre b/utils/libre index 2d0e400ab78401e7c7bbbab386ad624c39522d61..36282813e5714700db7717811267a0d308bed147 100755 --- a/utils/libre +++ b/utils/libre @@ -101,16 +101,13 @@ case "$1" in rm /system/haproxy/haproxy/certs/${2}.pem fi fi;; - getsize) + getsize) # check the current size if [ $# -ne 2 ]; then echo "getsize requires a domainname argument." exit 1 fi - -SIZE="`du -hs ${2}`" -#SIZE=${SIZE%G*} -echo $(du -hs ${2}) |cut -d ' ' -f 1;; + echo $(du -hs /data/domains/${2}) |cut -d ' ' -f 1;; *) show_usage esac