diff options
author | Erik Johnston <erik@matrix.org> | 2015-10-22 13:16:35 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-10-22 13:16:35 +0100 |
commit | 8a98f0dc5b2dceba596f7d25895969a88c223053 (patch) | |
tree | 9e62f8773a32fc24f1951a2601fee1f9afabc178 /demo/start.sh | |
parent | PEP8 (diff) | |
parent | Merge pull request #320 from matrix-org/appservice-retry-cap (diff) | |
download | synapse-8a98f0dc5b2dceba596f7d25895969a88c223053.tar.xz |
Merge branch 'develop' of github.com:matrix-org/synapse into erikj/search
Diffstat (limited to 'demo/start.sh')
-rwxr-xr-x | demo/start.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/demo/start.sh b/demo/start.sh index d90115ec97..dcc4d6f4fa 100755 --- a/demo/start.sh +++ b/demo/start.sh @@ -38,8 +38,12 @@ for port in 8080 8081 8082; do perl -p -i -e 's/^enable_registration:.*/enable_registration: true/g' $DIR/etc/$port.config - echo "full_twisted_stacktraces: true" >> $DIR/etc/$port.config - echo "report_stats: false" >> $DIR/etc/$port.config + if ! grep -F "full_twisted_stacktraces" -q $DIR/etc/$port.config; then + echo "full_twisted_stacktraces: true" >> $DIR/etc/$port.config + fi + if ! grep -F "report_stats" -q $DIR/etc/$port.config ; then + echo "report_stats: false" >> $DIR/etc/$port.config + fi python -m synapse.app.homeserver \ --config-path "$DIR/etc/$port.config" \ |