archivos de configuracion, scripts y assets customizados de greenlight, scalelite y bigbluebutton
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

1234567891011121314151617181920
  1. #!/bin/sh
  2. sudo apt-get -y update
  3. sudo apt-get -y dist-upgrade
  4. if [ -f /usr/share/bbb-web/WEB-INF/classes/bigbluebutton.properties ]; then
  5. SERVLET_DIR=/usr/share/bbb-web
  6. else
  7. SERVLET_DIR=/var/lib/tomcat7/webapps/bigbluebutton
  8. fi
  9. BBB_WEB_URL=$(cat ${SERVLET_DIR}/WEB-INF/classes/bigbluebutton.properties | grep -v '#' | sed -n '/^bigbluebutton.web.serverURL/{s/.*=//;p}')
  10. RESULT=$(echo $BBB_WEB_URL | awk 'sub(/^.{8}/,"")')
  11. MY_IP=$(dig +short myip.opendns.com @resolver1.opendns.com)
  12. #This should be dropped into apply-config.sh, but for now we are going to call it here once we update the instance.
  13. #xmlstarlet edit --inplace --update '//X-PRE-PROCESS[@cmd="set" and starts-with(@data, "external_rtp_ip=")]/@data' --value "external_rtp_ip=$MY_IP" /opt/freeswitch/conf/vars.xml
  14. bbb-conf --setip $RESULT
  15. bbb-conf --restart