archivos de configuracion, scripts y assets customizados de greenlight, scalelite y bigbluebutton
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

apply-config-sanantonio.sh 6.1KB

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