provision.sh 667 B

1234567891011121314151617181920212223
  1. #!/bin/bash
  2. #
  3. # provisioning script for vagrant boxes for testing the matrix-synapse debs.
  4. #
  5. # Will install the most recent matrix-synapse-py3 deb for this platform from
  6. # the /debs directory.
  7. set -e
  8. apt-get update
  9. apt-get install -y lsb-release
  10. deb=`ls /debs/matrix-synapse-py3_*+$(lsb_release -cs)*.deb | sort | tail -n1`
  11. debconf-set-selections <<EOF
  12. matrix-synapse matrix-synapse/report-stats boolean false
  13. matrix-synapse matrix-synapse/server-name string localhost:18448
  14. EOF
  15. dpkg -i "$deb"
  16. sed -i -e '/port: 8...$/{s/8448/18448/; s/8008/18008/}' -e '$aregistration_shared_secret: secret' /etc/matrix-synapse/homeserver.yaml
  17. systemctl restart matrix-synapse