diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2019-03-07 14:12:27 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-07 14:12:27 +0000 |
commit | ba7a6807c827936a5d0886cd5ac1211e8f30a8ce (patch) | |
tree | fde58905a82aff95a188fc3a7429407b501ca643 /debian/matrix-synapse-py3.config | |
parent | Update example_log_config.yaml (#4820) (diff) | |
parent | Debian package: fix warning during preconfiguration. (diff) | |
download | synapse-ba7a6807c827936a5d0886cd5ac1211e8f30a8ce.tar.xz |
Debian package: fix warning during preconfiguration. (#4823)
Diffstat (limited to 'debian/matrix-synapse-py3.config')
-rwxr-xr-x | debian/matrix-synapse-py3.config | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/debian/matrix-synapse-py3.config b/debian/matrix-synapse-py3.config index 3bda3292f1..37a781b3e8 100755 --- a/debian/matrix-synapse-py3.config +++ b/debian/matrix-synapse-py3.config @@ -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 |