dont swallow synapse startup errors

This commit is contained in:
Bruno Windels 2018-07-31 14:45:14 +02:00
parent f57628e3d0
commit 97fa7e03d1

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