buildx/dendrite/entrypoint.sh

14 lines
343 B
Bash
Raw Normal View History

2021-01-17 14:26:31 +00:00
#!/bin/bash
if [ ! -f /usr/local/etc/dendrite.yaml ]; then
cp /usr/local/share/dendrite-config.yaml /usr/local/etc/dendrite.yaml
fi
if [ ! -f /usr/local/etc/matrix_key.pem ]; then
/usr/local/bin/generate-keys --private-key /usr/local/etc/matrix_key.pem
fi
/usr/local/bin/dendrite-monolith-server --config /usr/local/etc/dendrite.yaml