10-config 712 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. 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. if [[ ! -f /config/sip-communicator.properties ]]; then
  13. tpl /defaults/sip-communicator.properties > /config/sip-communicator.properties
  14. fi
  15. if [[ ! -f /config/logging.properties ]]; then
  16. cp /defaults/logging.properties /config
  17. fi
  18. chown -R jvb:jitsi /config