summaryrefslogtreecommitdiff
path: root/debian/patches/0001-change_instructions.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/0001-change_instructions.patch')
-rw-r--r--debian/patches/0001-change_instructions.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/debian/patches/0001-change_instructions.patch b/debian/patches/0001-change_instructions.patch
new file mode 100644
index 00000000..6ee026d6
--- /dev/null
+++ b/debian/patches/0001-change_instructions.patch
@@ -0,0 +1,36 @@
+From: Erik Johnston <erikj@matrix.org>
+Date: Fri, 10 Jun 2016 10:57:07 +0100
+Subject: Point users to dpkg-reconfigure when debconf-managed settings are missing
+
+---
+ synapse/config/_base.py | 10 ++++++++++
+ 1 file changed, 10 insertions(+)
+
+diff --git a/synapse/config/_base.py b/synapse/config/_base.py
+index 1265738..308e56f 100644
+--- a/synapse/config/_base.py
++++ b/synapse/config/_base.py
+@@ -60,6 +60,11 @@ class ConfigError(Exception):
+ MISSING_REPORT_STATS_CONFIG_INSTRUCTIONS = """\
+ Please opt in or out of reporting anonymized homeserver usage statistics, by
+ setting the `report_stats` key in your config file to either True or False.
++
++To set it, run:
++
++ dpkg-reconfigure matrix-synapse
++
+ """
+
+ MISSING_REPORT_STATS_SPIEL = """\
+@@ -74,6 +79,11 @@ Thank you.
+
+ MISSING_SERVER_NAME = """\
+ Missing mandatory `server_name` config option.
++
++To set it, run:
++
++ dpkg-reconfigure matrix-synapse
++
+ """
+
+