Ver código fonte

Added script for update BBB

This script should be capable of remote update / set the correct hostname in each server.
This should be called with Ansible or any other kind of batch process.

Install with:

wget -qO- http://git.bluekitsune.com/bluekitsune-public/customfiles/raw/branch/master/update-bbb.sh | sh
master
lmartin 3 anos atrás
pai
commit
5b54c6954a
1 arquivos alterados com 16 adições e 0 exclusões
  1. 16
    0
      update-bbb.sh

+ 16
- 0
update-bbb.sh Ver arquivo

@@ -0,0 +1,16 @@
1
+#!/bin/sh
2
+
3
+sudo apt-get -y update
4
+sudo apt-get -y dist-upgrade
5
+
6
+if [ -f /usr/share/bbb-web/WEB-INF/classes/bigbluebutton.properties ]; then
7
+    SERVLET_DIR=/usr/share/bbb-web
8
+else
9
+    SERVLET_DIR=/var/lib/tomcat7/webapps/bigbluebutton
10
+fi
11
+
12
+BBB_WEB_URL=$(cat ${SERVLET_DIR}/WEB-INF/classes/bigbluebutton.properties | grep -v '#' | sed -n '/^bigbluebutton.web.serverURL/{s/.*=//;p}')
13
+RESULT=$(echo $BBB_WEB_URL | awk 'sub(/^.{8}/,"")')
14
+
15
+`bbb-conf --setip $RESULT`
16
+`bbb-conf --restart`

Carregando…
Cancelar
Salvar