Update rapport_activite/rapport_activites.sh

This commit is contained in:
Adrien Bourmault 2021-11-18 14:47:08 +00:00
parent ebe3a3739d
commit 2f108b7d07
1 changed files with 3 additions and 3 deletions

View File

@ -69,7 +69,7 @@ count_active_accounts() {
where to_timestamp(cast(l.seconds as int)) > current_timestamp - interval '${since}' where to_timestamp(cast(l.seconds as int)) > current_timestamp - interval '${since}'
and l.username not in ('r.giskard', 'lisa.simpson', 'bart.simpson')" and l.username not in ('r.giskard', 'lisa.simpson', 'bart.simpson')"
sudo -u ejabberd psql -U ejabberd -h localhost ejabberd -c "${sql}" -t | grep -v '^$' | awk '{print $1}' sudo -u ejabberd psql ejabberd -c "${sql}" -t | grep -v '^$' | awk '{print $1}'
} }
count_inactive_accounts() { count_inactive_accounts() {
@ -80,7 +80,7 @@ count_inactive_accounts() {
where to_timestamp(cast(l.seconds as int)) < current_timestamp - interval '${since}' where to_timestamp(cast(l.seconds as int)) < current_timestamp - interval '${since}'
and l.username not in ('r.giskard', 'lisa.simpson', 'bart.simpson')" and l.username not in ('r.giskard', 'lisa.simpson', 'bart.simpson')"
sudo -u ejabberd psql -U ejabberd -h localhost ejabberd -c "${sql}" -t | grep -v '^$' | awk '{print $1}' sudo -u ejabberd psql ejabberd -c "${sql}" -t | grep -v '^$' | awk '{print $1}'
} }
@ -95,7 +95,7 @@ count_removable_accounts() {
and s.xml like '%from=''chalec.org'' xmlns=''jabber:client''%Bienvenue sur le serveur%' and s.xml like '%from=''chalec.org'' xmlns=''jabber:client''%Bienvenue sur le serveur%'
and s.username not in ('r.giskard', 'lisa.simpson', 'bart.simpson')" and s.username not in ('r.giskard', 'lisa.simpson', 'bart.simpson')"
sudo -u ejabberd psql -U ejabberd -h localhost ejabberd -c "${sql}" -t | grep -v '^$' | awk '{print $1}' sudo -u ejabberd psql ejabberd -c "${sql}" -t | grep -v '^$' | awk '{print $1}'
} }
count_archived_messages() { count_archived_messages() {