15 lines
418 B
Bash
15 lines
418 B
Bash
|
#!/bin/bash
|
||
|
CONFDIR="/etc/matrix-synapse"
|
||
|
DATADIR="/var/lib/matrix-synapse"
|
||
|
/usr/bin/python3 \
|
||
|
-m synapse.app.homeserver \
|
||
|
--config-path ${CONFDIR}/homeserver.yaml \
|
||
|
--config-directory="${CONFDIR}/conf.d/" \
|
||
|
--data-directory="${DATADIR}" \
|
||
|
--generate-config \
|
||
|
--generate-keys \
|
||
|
--report-stats=no \
|
||
|
--server-name $@
|
||
|
chown -R root:synapse "${CONFDIR}"
|
||
|
chmod -R u=rwX,g=rX,o= "${CONFDIR}"
|