2
0

10-config 514 B

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