10-config 588 B

12345678910111213141516171819202122
  1. #!/usr/bin/with-contenv bash
  2. if [[ -z $JVB_AUTH_PASSWORD ]]; then
  3. echo 'FATAL ERROR: JVB auth password must be set'
  4. exit 1
  5. fi
  6. OLD_JVB_AUTH_PASSWORD=passw0rd
  7. if [[ "$JVB_AUTH_PASSWORD" == "$OLD_JVB_AUTH_PASSWORD" ]]; then
  8. echo 'FATAL ERROR: JVB auth password must be changed, check the README'
  9. exit 1
  10. fi
  11. if [[ ! -f /config/sip-communicator.properties ]]; then
  12. tpl /defaults/sip-communicator.properties > /config/sip-communicator.properties
  13. fi
  14. if [[ ! -f /config/logging.properties ]]; then
  15. cp /defaults/logging.properties /config
  16. fi
  17. chown -R jvb:jitsi /config