summary refs log tree commit diff
path: root/debian/matrix-synapse-py3.config
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2019-02-22 15:02:39 +0000
committerGitHub <noreply@github.com>2019-02-22 15:02:39 +0000
commit0969d688e321e0a419e427e728b425fdfcdea8ec (patch)
tree618805c6733860d49a88c137b010c65158943f76 /debian/matrix-synapse-py3.config
parentAdd prometheus metrics for number of badge update pushes. (#4709) (diff)
downloadsynapse-0969d688e321e0a419e427e728b425fdfcdea8ec.tar.xz
Debian: fix overwriting of config settings on upgrade (#4696)
Make sure that users' changes to the config files are preserved.

Fixes #4440.
Diffstat (limited to 'debian/matrix-synapse-py3.config')
-rwxr-xr-xdebian/matrix-synapse-py3.config12
1 files changed, 12 insertions, 0 deletions
diff --git a/debian/matrix-synapse-py3.config b/debian/matrix-synapse-py3.config
new file mode 100755
index 0000000000..3bda3292f1
--- /dev/null
+++ b/debian/matrix-synapse-py3.config
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+# try to update the debconf db according to whatever is in the config files
+/opt/venvs/matrix-synapse/lib/manage_debconf.pl read || true
+
+db_input high matrix-synapse/server-name || true
+db_input high matrix-synapse/report-stats || true
+db_go