10-config 942 B

12345678910111213141516171819202122232425
  1. #!/usr/bin/with-contenv bash
  2. export LOCAL_ADDRESS=$(ip addr show dev "$(ip route|awk '/^default/ { print $5 }')" | grep -oP '(?<=inet\s)\d+(\.\d+){3}')
  3. export SENTRY_RELEASE="${SENTRY_RELEASE:-$(apt-cache policy jitsi-videobridge2 | sed -n '/Installed/p' | sed -e 's/[^:]*: //')}"
  4. if [[ -z $JVB_AUTH_PASSWORD ]]; then
  5. echo 'FATAL ERROR: JVB auth password must be set'
  6. exit 1
  7. fi
  8. OLD_JVB_AUTH_PASSWORD=passw0rd
  9. if [[ "$JVB_AUTH_PASSWORD" == "$OLD_JVB_AUTH_PASSWORD" ]]; then
  10. echo 'FATAL ERROR: JVB auth password must be changed, check the README'
  11. exit 1
  12. fi
  13. tpl /defaults/sip-communicator.properties > /config/sip-communicator.properties
  14. if [[ -f /config/custom-sip-communicator.properties ]]; then
  15. cat /config/custom-sip-communicator.properties >> /config/sip-communicator.properties
  16. fi
  17. tpl /defaults/logging.properties > /config/logging.properties
  18. tpl /defaults/jvb.conf > /config/jvb.conf
  19. chown -R jvb:jitsi /config