element-web-Github/synapse/start.sh

12 lines
232 B
Bash
Raw Normal View History

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