riot-web/synapse/start.sh

15 lines
239 B
Bash
Raw Normal View History

#!/bin/bash
set -e
BASE_DIR=$(cd $(dirname $0) && pwd)
2018-07-27 14:10:19 +02:00
cd $BASE_DIR
cd installations/consent
2018-07-18 17:52:29 +02:00
source env/bin/activate
2018-07-31 14:45:14 +02:00
LOGFILE=$(mktemp)
./synctl start 2> $LOGFILE
EXIT_CODE=$?
if [ $EXIT_CODE -ne 0 ]; then
cat $LOGFILE
fi
exit $EXIT_CODE