mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-27 07:28:27 +00:00
21 lines
568 B
Bash
Executable file
21 lines
568 B
Bash
Executable file
#!/bin/bash -e
|
|
|
|
# This script is intended to be used inside a docker container for Complement
|
|
|
|
export GOCOVERDIR=/tmp/covdatafiles
|
|
mkdir -p "${GOCOVERDIR}"
|
|
if [[ "${COVER}" -eq 1 ]]; then
|
|
echo "Running with coverage"
|
|
exec /dendrite/dendrite-cover \
|
|
--really-enable-open-registration \
|
|
--tls-cert server.crt \
|
|
--tls-key server.key \
|
|
--config dendrite.yaml
|
|
else
|
|
echo "Not running with coverage"
|
|
exec /dendrite/dendrite \
|
|
--really-enable-open-registration \
|
|
--tls-cert server.crt \
|
|
--tls-key server.key \
|
|
--config dendrite.yaml
|
|
fi
|