Debian package: fix warning during preconfiguration.

This commit is contained in:
Richard van der Hoff 2019-03-07 07:16:09 +00:00
parent 06cbf79fe3
commit 6e4931aa19
2 changed files with 11 additions and 1 deletions

View file

@ -5,7 +5,11 @@ 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
#
# note that we may get run during preconfiguration, in which case the script
# will not yet be installed.
[ -x /opt/venvs/matrix-synapse/lib/manage_debconf.pl ] && \
/opt/venvs/matrix-synapse/lib/manage_debconf.pl read
db_input high matrix-synapse/server-name || true
db_input high matrix-synapse/report-stats || true