[bbb-greenlight] Customize /create options



commit 4b40ea883e1b8cb55ceb23230b61dc87abaf0a54
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date:   Thu Jun 17 10:01:41 2021 +0200

    Customize /create options

 Dockerfile                       |  6 +++---
 patches/create_options.patch     | 14 ++++++++++++++
 ldap.patch => patches/ldap.patch |  0
 3 files changed, 17 insertions(+), 3 deletions(-)
---
diff --git a/Dockerfile b/Dockerfile
index cb271ad..9a31c3a 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,9 +1,9 @@
 FROM bigbluebutton/greenlight:v2
 
-ADD ldap.patch /ldap.patch
+COPY patches /patches
 RUN apk add -U patch && \
-    patch -p1 -i /ldap.patch && \
-    rm -f /ldap.patch
+    for patchfile in /patches/*.patch; do patch -p1 -i $patchfile; done; \
+    rm -rf /patches
 
 ADD entrypoint /entrypoint
 ENTRYPOINT ["/entrypoint"]
diff --git a/patches/create_options.patch b/patches/create_options.patch
new file mode 100644
index 0000000..5bffd60
--- /dev/null
+++ b/patches/create_options.patch
@@ -0,0 +1,14 @@
+diff --git a/app/controllers/concerns/bbb_server.rb b/app/controllers/concerns/bbb_server.rb
+index d38d52d..5b49b9d 100644
+--- a/app/controllers/concerns/bbb_server.rb
++++ b/app/controllers/concerns/bbb_server.rb
+@@ -76,6 +76,9 @@ module BbbServer
+     create_options[:muteOnStart] = options[:mute_on_start] if options[:mute_on_start]
+     create_options[:guestPolicy] = "ASK_MODERATOR" if options[:require_moderator_approval]
+ 
++    create_options[:allowModsToUnmuteUsers] = true
++    create_options[:logo] = 
"https://www.gnome.org/wp-content/uploads/2020/07/GNOME-LogoHorizontal-darkgrey.png";
++
+     # Send the create request.
+     begin
+       meeting = if room.presentation.attached?
diff --git a/ldap.patch b/patches/ldap.patch
similarity index 100%
rename from ldap.patch
rename to patches/ldap.patch


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]