Skip to content
Commits on Source (2)
......@@ -37,6 +37,7 @@ function show_usage {
echo " - update: to update the current folder."
echo " - stats: show docker stats with names."
echo " - delete <domainname>: remove a libre.sh service."
echo " - getsize <domainname>: give you the size of the installed application"
exit 1
}
......@@ -100,6 +101,16 @@ case "$1" in
rm /system/haproxy/haproxy/certs/${2}.pem
fi
fi;;
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;;
*)
show_usage
esac