diff options
Diffstat (limited to 'synapse.install')
-rw-r--r-- | synapse.install | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/synapse.install b/synapse.install index 99de28a7a19e..8234bc8c6a5d 100644 --- a/synapse.install +++ b/synapse.install @@ -2,23 +2,27 @@ DATA_DIR="/var/lib/synapse" +ask_report_stats() { + cat <<-EOF + :: Please opt in or out of reporting anonymized homeserver usage statistics, by + setting the report_stats key in your config file + (/etc/synapse/homeserver.yaml) to either True or False. + We would really appreciate it if you could help our project out by reporting + anonymized usage statistics from your homeserver. Only very basic aggregate + data (e.g. number of users) will be reported, but it helps us to track the + growth of the Matrix community, and helps us to make Matrix a success, + as well as to convince other networks that they should peer with us. + Thank you. + + :: Note that the homeserver won't start unless you make the choice. + EOF +} + post_upgrade() { systemctl daemon-reload if (( $(vercmp "$2" "0.10.1.rc1-3") < 0 )); then - cat <<-EOF - :: Please opt in or out of reporting anonymized homeserver usage statistics, by - setting the report_stats key in your config file - (/etc/synapse/homeserver.yaml) to either True or False. - We would really appreciate it if you could help our project out by reporting - anonymized usage statistics from your homeserver. Only very basic aggregate - data (e.g. number of users) will be reported, but it helps us to track the - growth of the Matrix community, and helps us to make Matrix a success, - as well as to convince other networks that they should peer with us. - Thank you. - - :: Note that the homeserver won't start unless you make the choice. - EOF + ask_report_stats fi } |