From 765c78d57f4e67e4f3f573f65b0a5c348cd85d6d Mon Sep 17 00:00:00 2001 From: michi-80337 <83032848+michi-80337@users.noreply.github.com> Date: Wed, 19 May 2021 14:54:03 +0200 Subject: [PATCH 1/2] Update bbb-install.sh Fix issue #265 (1/2): Add function to create home directory structure if it doesn't exist. --- bbb-install.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/bbb-install.sh b/bbb-install.sh index fd4af78..51069a5 100755 --- a/bbb-install.sh +++ b/bbb-install.sh @@ -716,6 +716,20 @@ configure_HTML5() { sed -i 's/swfSlidesRequired=true/swfSlidesRequired=false/g' $SERVLET_DIR/WEB-INF/classes/bigbluebutton.properties } +install_home(){ + # Create home directory structure if it does not exist yet and user + # bigbluebutton is available + if [ ! -d ~bigbluebutton ]; then + if getent passwd bigbluebutton >/dev/null; then + mkdir -m 750 \ + ~bigbluebutton \ + ~bigbluebutton/.cache \ + ~bigbluebutton/.cache/dconf + chown -R bigbluebutton:bigbluebutton ~bigbluebutton + fi + fi +} + install_greenlight(){ install_docker From ddf40f9cf99b5e6e9bd03dde04841fced5da8cbc Mon Sep 17 00:00:00 2001 From: michi-80337 <83032848+michi-80337@users.noreply.github.com> Date: Wed, 19 May 2021 15:04:41 +0200 Subject: [PATCH 2/2] Update bbb-install.sh Fix issue #265 (2/2): Add function call into main() --- bbb-install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bbb-install.sh b/bbb-install.sh index 51069a5..2a2741d 100755 --- a/bbb-install.sh +++ b/bbb-install.sh @@ -336,6 +336,8 @@ main() { ln -s "$LINK_PATH" "/var/bigbluebutton" fi + install_home + if [ ! -z "$PROVIDED_CERTIFICATE" ] ; then install_ssl elif [ ! -z "$HOST" ] && [ ! -z "$EMAIL" ] ; then