|
@@ -0,0 +1,72 @@
|
|
1
|
+#!/bin/bash
|
|
2
|
+# Pull in the helper functions for configuring BigBlueButton
|
|
3
|
+source /etc/bigbluebutton/bbb-conf/apply-lib.sh
|
|
4
|
+
|
|
5
|
+enableUFWRules
|
|
6
|
+
|
|
7
|
+sed -i 's/defaultWelcomeMessage=.*/defaultWelcomeMessage=Bienvenido a <b>%%CONFNAME%%<\/b>!<br>/g' /usr/share/bbb-web/WEB-INF/classes/bigbluebutton.properties
|
|
8
|
+sed -i 's/defaultWelcomeMessageFooter=.*/defaultWelcomeMessageFooter=Provisto por <a href="https:\/\/digitalcse.com\/" target="_blank"><u>DigitalCSE<\/u><\/a> /g' /usr/share/bbb-web/WEB-INF/classes/bigbluebutton.properties
|
|
9
|
+echo "" > /var/www/bigbluebutton-default/index.html
|
|
10
|
+
|
|
11
|
+yq w -i /usr/share/meteor/bundle/programs/server/assets/app/config/settings.yml public.app.clientTitle 'DigitalCSE'
|
|
12
|
+yq w -i /usr/share/meteor/bundle/programs/server/assets/app/config/settings.yml public.app.appName 'DigitalCSE Client'
|
|
13
|
+yq w -i /usr/share/meteor/bundle/programs/server/assets/app/config/settings.yml public.app.copyright '2020 DigitalCSE Inc.'
|
|
14
|
+yq w -i /usr/share/meteor/bundle/programs/server/assets/app/config/settings.yml public.app.helpLink 'https://digitalcse.com'
|
|
15
|
+
|
|
16
|
+yq w -i /usr/share/meteor/bundle/programs/server/assets/app/config/settings.yml public.kurento.cameraProfiles.[0].bitrate 50
|
|
17
|
+yq w -i /usr/share/meteor/bundle/programs/server/assets/app/config/settings.yml public.kurento.cameraProfiles.[1].bitrate 100
|
|
18
|
+yq w -i /usr/share/meteor/bundle/programs/server/assets/app/config/settings.yml public.kurento.cameraProfiles.[2].bitrate 150
|
|
19
|
+yq w -i /usr/share/meteor/bundle/programs/server/assets/app/config/settings.yml public.kurento.cameraProfiles.[3].bitrate 200
|
|
20
|
+
|
|
21
|
+yq w -i /usr/share/meteor/bundle/programs/server/assets/app/config/settings.yml public.kurento.cameraProfiles.[0].default true
|
|
22
|
+yq w -i /usr/share/meteor/bundle/programs/server/assets/app/config/settings.yml public.kurento.cameraProfiles.[1].default false
|
|
23
|
+yq w -i /usr/share/meteor/bundle/programs/server/assets/app/config/settings.yml public.kurento.cameraProfiles.[2].default false
|
|
24
|
+yq w -i /usr/share/meteor/bundle/programs/server/assets/app/config/settings.yml public.kurento.cameraProfiles.[3].default false
|
|
25
|
+
|
|
26
|
+sed -i 's/defaultMaxUsers=.*/defaultMaxUsers=100/g' /usr/share/bbb-web/WEB-INF/classes/bigbluebutton.properties
|
|
27
|
+sed -i 's/defaultMeetingDuration=.*/defaultMeetingDuration=720/g' /usr/share/bbb-web/WEB-INF/classes/bigbluebutton.properties
|
|
28
|
+sed -i 's/allowStartStopRecording=.*/allowStartStopRecording=false/g' /usr/share/bbb-web/WEB-INF/classes/bigbluebutton.properties
|
|
29
|
+sed -i 's/lockSettingsDisableCam=.*/lockSettingsDisableCam=true/g' /usr/share/bbb-web/WEB-INF/classes/bigbluebutton.properties
|
|
30
|
+sed -i 's/lockSettingsDisableMic=.*/lockSettingsDisableMic=false/g' /usr/share/bbb-web/WEB-INF/classes/bigbluebutton.properties
|
|
31
|
+sed -i 's/lockSettingsDisablePrivateChat=.*/lockSettingsDisablePrivateChat=true/g' /usr/share/bbb-web/WEB-INF/classes/bigbluebutton.properties
|
|
32
|
+sed -i 's/lockSettingsDisablePublicChat=.*/lockSettingsDisablePublicChat=false/g' /usr/share/bbb-web/WEB-INF/classes/bigbluebutton.properties
|
|
33
|
+sed -i 's/lockSettingsDisableNote=.*/lockSettingsDisableNote=true/g' /usr/share/bbb-web/WEB-INF/classes/bigbluebutton.properties
|
|
34
|
+sed -i 's/lockSettingsHideUserList=.*/lockSettingsHideUserList=false/g' /usr/share/bbb-web/WEB-INF/classes/bigbluebutton.properties
|
|
35
|
+sed -i 's/lockSettingsLockedLayout=.*/lockSettingsLockedLayout=false/g' /usr/share/bbb-web/WEB-INF/classes/bigbluebutton.properties
|
|
36
|
+sed -i 's/lockSettingsLockOnJoin=.*/lockSettingsLockOnJoin=true/g' /usr/share/bbb-web/WEB-INF/classes/bigbluebutton.properties
|
|
37
|
+sed -i 's/lockSettingsLockOnJoinConfigurable=.*/lockSettingsLockOnJoinConfigurable=false/g' /usr/share/bbb-web/WEB-INF/classes/bigbluebutton.properties
|
|
38
|
+
|
|
39
|
+if [ ! -f /var/www/bigbluebutton-default/default_presentation_sanantonio.pdf ]; then
|
|
40
|
+ wget -O /var/www/bigbluebutton-default/default_presentation_sanantonio.pdf https://sanantonio.sfo2.digitaloceanspaces.com/presentation.pdf
|
|
41
|
+fi
|
|
42
|
+
|
|
43
|
+cp /var/www/bigbluebutton-default/default_presentation_sanantonio.pdf /var/www/bigbluebutton-default/default.pdf
|
|
44
|
+
|
|
45
|
+if [ ! -f /var/www/bigbluebutton-default/LOGO_CSE-FINAL.ico ]; then
|
|
46
|
+ wget -O /var/www/bigbluebutton-default/LOGO_CSE-FINAL.ico https://storage.googleapis.com/agl-01/LOGO-CSE-FINAL.ico
|
|
47
|
+fi
|
|
48
|
+
|
|
49
|
+cp /var/www/bigbluebutton-default/LOGO_CSE-FINAL.ico /var/www/bigbluebutton-default/favicon.ico
|
|
50
|
+
|
|
51
|
+sed -i 's/defaultCopyright = .*/defaultCopyright = "<p>DigitalCSE<\/p>"/g' /var/bigbluebutton/playback/presentation/2.0/playback.js
|
|
52
|
+
|
|
53
|
+if [ ! -f /var/bigbluebutton/playback/presentation/2.0/LOGO-CSE-FINAL.png ]; then
|
|
54
|
+ wget -O /var/bigbluebutton/playback/presentation/2.0/LOGO-CSE-FINAL.png https://digitalcse-001.nyc3.digitaloceanspaces.com/LOGO-CSE-FINAL.png
|
|
55
|
+fi
|
|
56
|
+
|
|
57
|
+cp /var/bigbluebutton/playback/presentation/2.0/LOGO-CSE-FINAL.png /var/bigbluebutton/playback/presentation/2.0/logo.png
|
|
58
|
+chmod 644 /var/bigbluebutton/playback/presentation/2.0/logo.png
|
|
59
|
+chown bigbluebutton:bigbluebutton /var/bigbluebutton/playback/presentation/2.0/logo.png
|
|
60
|
+
|
|
61
|
+if [ ! -f /var/www/bigbluebutton/client/guest-wait-digitalcse.html ]; then
|
|
62
|
+ wget -O /var/www/bigbluebutton/client/guest-wait-digitalcse.html http://git.bluekitsune.com/bluekitsune-public/customfiles/raw/branch/master/guest-wait.html
|
|
63
|
+fi
|
|
64
|
+
|
|
65
|
+cp /var/www/bigbluebutton/client/guest-wait-digitalcse.html /var/www/bigbluebutton/client/guest-wait.html
|
|
66
|
+
|
|
67
|
+PUBLIC_IP=$(curl -s http://169.254.169.254/metadata/v1/interfaces/public/0/ipv4/address)
|
|
68
|
+echo "Fix for 1007 and 1020 - https://github.com/manishkatyan/bbb-optimize#fix-1007-and-1020-errors"
|
|
69
|
+xmlstarlet edit --inplace --update '//profile/settings/param[@name="ext-rtp-ip"]/@value' --value "\$\${external_rtp_ip}" /opt/freeswitch/etc/freeswitch/sip_profiles/external.xml
|
|
70
|
+xmlstarlet edit --inplace --update '//profile/settings/param[@name="ext-sip-ip"]/@value' --value "\$\${external_sip_ip}" /opt/freeswitch/etc/freeswitch/sip_profiles/external.xml
|
|
71
|
+xmlstarlet edit --inplace --update '//X-PRE-PROCESS[@cmd="set" and starts-with(@data, "external_rtp_ip=")]/@data' --value "external_rtp_ip=$PUBLIC_IP" /opt/freeswitch/etc/freeswitch/vars.xml
|
|
72
|
+xmlstarlet edit --inplace --update '//X-PRE-PROCESS[@cmd="set" and starts-with(@data, "external_sip_ip=")]/@data' --value "external_sip_ip=$PUBLIC_IP" /opt/freeswitch/etc/freeswitch/vars.xml
|