provision.sh 727 B

123456789101112131415161718192021222324
  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=$(find /debs -name "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 's/port: 8448$/port: 18448/; s/port: 8008$/port: 18008' /etc/matrix-synapse/homeserver.yaml
  17. echo 'registration_shared_secret: secret' >> /etc/matrix-synapse/homeserver.yaml
  18. systemctl restart matrix-synapse