2
0

10-config 846 B

123456789101112131415161718192021222324252627
  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. if [[ -z $JVB_AUTH_PASSWORD ]]; then
  4. echo 'FATAL ERROR: JVB auth password must be set'
  5. exit 1
  6. fi
  7. OLD_JVB_AUTH_PASSWORD=passw0rd
  8. if [[ "$JVB_AUTH_PASSWORD" == "$OLD_JVB_AUTH_PASSWORD" ]]; then
  9. echo 'FATAL ERROR: JVB auth password must be changed, check the README'
  10. exit 1
  11. fi
  12. tpl /defaults/sip-communicator.properties > /config/sip-communicator.properties
  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/jvb.conf > /config/jvb.conf
  17. if [[ ! -f /config/logging.properties ]]; then
  18. cp /defaults/logging.properties /config
  19. fi
  20. chown -R jvb:jitsi /config