10-config 861 B

123456789101112131415161718192021222324
  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. if [[ -f /config/custom-sip-communicator.properties ]]; then
  14. cat /config/custom-sip-communicator.properties > /config/sip-communicator.properties
  15. fi
  16. tpl /defaults/logging.properties > /config/logging.properties
  17. tpl /defaults/jvb.conf > /config/jvb.conf
  18. chown -R jvb:jitsi /config