diff --git a/chatonsinfos/template-chatonsinfos.properties b/chatonsinfos/template-chatonsinfos.properties index 6dfdf46..a7a94b3 100644 --- a/chatonsinfos/template-chatonsinfos.properties +++ b/chatonsinfos/template-chatonsinfos.properties @@ -45,9 +45,8 @@ metrics.accounts.total.count = __TOTAL_USER_ACCOUNTS__ metrics.accounts.active.name = Nombre de comptes actifs metrics.accounts.active.description = Nombre de comptes vraiment utilisés récemment +metrics.users.total.__CURRENT_YEAR__ = __ACTIVE_USER_YEAR__ metrics.accounts.active.lastyear = __ACTIVE_USER_YEAR__ metrics.accounts.active.lastmonth = __ACTIVE_USER_MONTH__ metrics.accounts.active.lastweek = __ACTIVE_USER_WEEK__ -subs.metrics-2020=https://xmpp.chapril.org/.well-known/chaprilinfos/xmppchaprilorg-metrics-2020.properties -subs.metrics-2021=https://xmpp.chapril.org/.well-known/chaprilinfos/xmppchaprilorg-metrics-2021.properties diff --git a/chatonsinfos/update_chatonsinfos b/chatonsinfos/update_chatonsinfos index a5b6bd4..a604644 100755 --- a/chatonsinfos/update_chatonsinfos +++ b/chatonsinfos/update_chatonsinfos @@ -7,6 +7,7 @@ main() { cat "${TEMPLATE}" \ | sed "s/__EJABBERD_VERSION__/$(get_ejabberd_version)/" \ | sed "s/__LAST_UPDATE__/$(date -Iminutes)/" \ + | sed "s/__CURRENT_YEAR__/$(date +%Y)/" \ | sed "s/__TOTAL_USER_ACCOUNTS__/$(count_user_accounts)/" \ | sed "s/__ACTIVE_USER_WEEK__/$(user_activity 7)/" \ | sed "s/__ACTIVE_USER_MONTH__/$(user_activity 30)/" \