void-packages/srcpkgs/synapse/INSTALL

28 lines
883 B
Plaintext

#
# Tell user to generate configuration when they first install it
# Taken from Arch Linux
#
case "${ACTION}" in
post)
if [ ! -e /etc/synapse/homeserver.yaml ]; then
cat <<-EOF
==> A synapse configuration file needs to be generated before you can
start synapse, and you should make sure that it's readable by the
synapse user.
cd /var/lib/synapse
sudo -u synapse python3 -m synapse.app.homeserver \\
--server-name my.domain.name \\
--config-path /etc/synapse/homeserver.yaml \\
--generate-config \\
--report-stats=yes
N.B.: The default synapse config enables the webclient feature.
You need to either disable it, install the syweb python package
from matrix-angular-sdk, or set 'web_client_location' to a path
to make synapse not try to serve it using syweb.
EOF
fi
;;
esac