From c449c364bdab3ab679f2486586fab2c1e1eac95f Mon Sep 17 00:00:00 2001 From: Michel Memeteau Date: Thu, 9 Sep 2021 16:57:07 +0200 Subject: [PATCH] Use /data/domains root dir for domains --- utils/libre | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/utils/libre b/utils/libre index 2d0e400..3628281 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 -- GitLab