10-config 738 B

12345678910111213141516171819202122
  1. #!/usr/bin/with-contenv bash
  2. export SENTRY_RELEASE="${SENTRY_RELEASE:-$(apt-cache policy jicofo | sed -n '/Installed/p' | sed -e 's/[^:]*: //')}"
  3. if [[ -z $JICOFO_AUTH_PASSWORD ]]; then
  4. echo 'FATAL ERROR: Jicofo auth password must be set'
  5. exit 1
  6. fi
  7. OLD_JICOFO_AUTH_PASSWORD=passw0rd
  8. if [[ "$JICOFO_AUTH_PASSWORD" == "$OLD_JICOFO_AUTH_PASSWORD" ]]; then
  9. echo 'FATAL ERROR: Jicofo auth password must be changed, check the README'
  10. exit 1
  11. fi
  12. # maintain backward compatibility with older variable
  13. [ -z "${XMPP_HIDDEN_DOMAIN}" ] && export XMPP_HIDDEN_DOMAIN="$XMPP_RECORDER_DOMAIN"
  14. tpl /defaults/logging.properties > /config/logging.properties
  15. tpl /defaults/jicofo.conf > /config/jicofo.conf
  16. chown -R jicofo:jitsi /config