2016-08-03 09:38:20 +00:00
|
|
|
#!/usr/bin/with-contenv sh
|
|
|
|
|
2018-05-23 16:04:35 +00:00
|
|
|
if [ ! -f /var/lib/matrix-synapse/signing/signing.key ]; then
|
|
|
|
s6-setuidgid matrix-synapse python -B -m synapse.app.homeserver -c /var/lib/matrix-synapse/server.yaml --generate-config -H $SERVER_NAME --report-stats=no
|
2016-08-03 09:38:20 +00:00
|
|
|
fi
|
2019-01-06 15:43:02 +00:00
|
|
|
|
|
|
|
if [ ! -f /var/lib/matrix-synapse/signing/dhparams.pem ]; then
|
|
|
|
openssl dhparam -out /var/lib/matrix-synapse/signing/dhparams.pem $DHPARAM_LENGTH
|
|
|
|
fi
|
|
|
|
|
|
|
|
chmod 755 "/etc/ssl/matrix-synapse/"
|
|
|
|
if [ -f "/etc/ssl/matrix-synapse/$CERT_DOMAIN.crt"y ]; then
|
|
|
|
chmod 644 "/etc/ssl/matrix-synapse/$CERT_DOMAIN.crt"
|
|
|
|
fi
|