Conduit is a simple, fast and reliable chat server powered by Matrix https://conduit.rs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
577 B
23 lines
577 B
#!/bin/sh |
|
set -e |
|
|
|
# Source debconf library. |
|
. /usr/share/debconf/confmodule |
|
|
|
CONDUIT_CONFIG_PATH=/etc/matrix-conduit |
|
CONDUIT_CONFIG_FILE="$CONDUIT_CONFIG_PATH/env" |
|
|
|
# Ask for the Matrix homeserver name and port. |
|
db_input high matrix-conduit/hostname || true |
|
db_go |
|
|
|
db_input medium matrix-conduit/port || true |
|
db_go |
|
|
|
# Update the values in the config. |
|
db_get matrix-conduit/hostname |
|
sed -i -e "s/^ROCKET_SERVER_NAME=.*/ROCKET_SERVER_NAME=\"$RET\"/" $CONDUIT_CONFIG_FILE |
|
db_get matrix-conduit/port |
|
sed -i -e "s/^ROCKET_PORT=.*/ROCKET_PORT=\"$RET\"/" $CONDUIT_CONFIG_FILE |
|
|
|
exit 0
|
|
|