element-web-Github/test/end-to-end-tests/synapse/start.sh

16 lines
276 B
Bash
Raw Normal View History

#!/bin/bash
set -e
BASE_DIR=$(cd $(dirname $0) && pwd)
2018-07-27 20:10:19 +08:00
cd $BASE_DIR
cd installations/consent/env/bin/
source activate
2018-07-31 20:45:14 +08:00
LOGFILE=$(mktemp)
2019-04-25 21:23:51 +08:00
echo "Synapse log file at $LOGFILE"
2018-07-31 20:45:14 +08:00
./synctl start 2> $LOGFILE
EXIT_CODE=$?
if [ $EXIT_CODE -ne 0 ]; then
cat $LOGFILE
fi
exit $EXIT_CODE