dont swallow synapse startup errors

pull/21833/head
Bruno Windels 2018-07-31 14:45:14 +02:00
parent f57628e3d0
commit 97fa7e03d1
1 changed files with 7 additions and 1 deletions

View File

@ -3,4 +3,10 @@ BASE_DIR=$(readlink -f $(dirname $0))
cd $BASE_DIR
cd installations/consent
source env/bin/activate
./synctl start 2> /dev/null
LOGFILE=$(mktemp)
./synctl start 2> $LOGFILE
EXIT_CODE=$?
if [ $EXIT_CODE -ne 0 ]; then
cat $LOGFILE
fi
exit $EXIT_CODE