Improve script rapport_activites.sh
This commit is contained in:
parent
ed22cb9147
commit
d39a247454
|
@ -1,5 +1,7 @@
|
|||
#! /bin/bash
|
||||
|
||||
STORAGE_DIR="/var/www/xmpp.chapril.org/upload/"
|
||||
|
||||
main() {
|
||||
echo "h2. ## Global info"
|
||||
echo ""
|
||||
|
@ -11,7 +13,7 @@ main() {
|
|||
echo "h2. ## HTTP upload storage:"
|
||||
echo ""
|
||||
echo "* User quota: $(get_hard_quota)M"
|
||||
echo "* Total disk usage: $(du -sh /srv/ejabberd/chapril.org/upload/ | awk '{print $1}')"
|
||||
echo "* Total disk usage: $(du -sh ${STORAGE_DIR} | awk '{print $1}')"
|
||||
per_account_storage_usage
|
||||
# echo "s2s outgoing connections: $(sudo -u ejabberd ejabberdctl incoming_s2s_number)"
|
||||
# echo "s2s incoming connections: $(sudo -u ejabberd ejabberdctl outgoing_s2s_number)"
|
||||
|
@ -22,7 +24,6 @@ get_hard_quota() {
|
|||
}
|
||||
|
||||
per_account_storage_usage() {
|
||||
STORAGE_DIR="/srv/ejabberd/chapril.org/upload/"
|
||||
# TODO Directories to ignore because they are used for tests accounts (bart and lisa simpsons)
|
||||
IGNORE_DIRS="35eae3ddc83d72e4d3fad3160a400db688d7d936 9be859c77649f33d207cbe0d74a126b2fd31cb33"
|
||||
|
||||
|
|
Loading…
Reference in New Issue