From 2f108b7d07fc119fbcdf2891e779afc6ab3605fc Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Thu, 18 Nov 2021 14:47:08 +0000 Subject: [PATCH] Update rapport_activite/rapport_activites.sh --- rapport_activite/rapport_activites.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rapport_activite/rapport_activites.sh b/rapport_activite/rapport_activites.sh index 212258a..3b18dd6 100755 --- a/rapport_activite/rapport_activites.sh +++ b/rapport_activite/rapport_activites.sh @@ -69,7 +69,7 @@ count_active_accounts() { where to_timestamp(cast(l.seconds as int)) > current_timestamp - interval '${since}' 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() { @@ -80,7 +80,7 @@ count_inactive_accounts() { where to_timestamp(cast(l.seconds as int)) < current_timestamp - interval '${since}' 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.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() {