10-config 599 B

12345678910111213141516171819
  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. tpl /defaults/logging.properties > /config/logging.properties
  13. tpl /defaults/jicofo.conf > /config/jicofo.conf
  14. chown -R jicofo:jitsi /config