Split config into a Debian and local part

* The Debian part will be generated and managed by Debconf and configure
  homeserver name, address and port
* The local part will just be a config file that shows the other
  configuration options

Added the address configuration and moved the config generation
from the config to the postinst script.
This commit is contained in:
Paul van Tilburg 2020-11-13 20:35:22 +01:00
parent 79692db45d
commit f72554de10
No known key found for this signature in database
GPG key ID: C6DE073EDA9EEC4D
7 changed files with 98 additions and 64 deletions

View file

@ -85,12 +85,12 @@ instead of a server that has high scalability."""
section = "net"
priority = "optional"
assets = [
["debian/env", "etc/matrix-conduit/env", "644"],
["debian/env.local", "etc/matrix-conduit/local", "644"],
["README.md", "usr/share/doc/matrix-conduit/", "644"],
["target/release/conduit", "usr/sbin/matrix-conduit", "755"],
]
conf-files = [
"/etc/matrix-conduit/env"
"/etc/matrix-conduit/local"
]
maintainer-scripts = "debian/"
systemd-units = { unit-name = "matrix-conduit" }