From cd10c8dac7d6fecddb6af037eda246e4b59a8fea Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Thu, 18 Nov 2021 14:52:51 +0000 Subject: [PATCH] Update rapport_activite/rapport_activites.sh --- rapport_activite/rapport_activites.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rapport_activite/rapport_activites.sh b/rapport_activite/rapport_activites.sh index 22bae6b..d512371 100755 --- a/rapport_activite/rapport_activites.sh +++ b/rapport_activite/rapport_activites.sh @@ -5,12 +5,12 @@ STORAGE_DIR="/var/www/upload/" main() { echo "h2. ## Global info" echo "" - echo "* Total accounts: $(sudo -u ejabberd ejabberdctl registered_users chalec.org | egrep -v -e 'r\.giskard' -e '(lisa|bart)\.simpson' | wc -l)" + echo "* Total accounts: $(ejabberdctl registered_users chalec.org | egrep -v -e 'r\.giskard' -e '(lisa|bart)\.simpson' | wc -l)" echo "** Active: $(count_active_accounts)" echo "** Inactive: $(count_inactive_accounts '1 MONTH')" echo "** Removable: $(count_removable_accounts '6 MONTHS')" # echo "* Total messages stored (MAM): $(count_archived_messages) " - echo "* Total rooms active: $(sudo -u ejabberd ejabberdctl muc_online_rooms global | wc -l)" + echo "* Total rooms active: $(ejabberdctl muc_online_rooms global | wc -l)" echo "" echo "_* Inactive accounts:_ no connection during last month" echo "_* Removable accounts:_ no connection in the last 6 months *and* didn't read the welcome message"