2016-08-03 09:38:20 +00:00
|
|
|
#!/usr/bin/with-contenv sh
|
|
|
|
|
|
|
|
if [ ! -f /var/lib/synapse/signing/signing.key ]; then
|
|
|
|
source /var/lib/synapse/bin/activate
|
2016-08-03 10:07:51 +00:00
|
|
|
s6-setuidgid synapse python -B -m synapse.app.homeserver -c server.yaml --generate-config -H $SERVER_NAME --report-stats=no
|
2016-08-03 09:38:20 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if [ ! -f /var/lib/synapse/signing/dhparams.pem ]; then
|
|
|
|
openssl dhparam -out /var/lib/synapse/signing/dhparams.pem $DHPARAM_LENGTH
|
|
|
|
fi
|