summarylogtreecommitdiffstats
path: root/synapse.install
diff options
context:
space:
mode:
authorIvan Shapovalov2016-07-24 16:23:12 +0300
committerIvan Shapovalov2016-07-24 16:23:12 +0300
commit14550159f3d31e51c3b94ceb835addd93a23e86a (patch)
tree407820c571e77eae12340ff6b9fda70c104f2613 /synapse.install
parentbff7469c25271a908a981f8035235590d6f481bc (diff)
downloadaur-14550159f3d31e51c3b94ceb835addd93a23e86a.tar.gz
Sync install script -- fix post_install.
Diffstat (limited to 'synapse.install')
-rw-r--r--synapse.install30
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
}