diff --git a/bbb-install.sh b/bbb-install.sh index c12e457..c413849 100755 --- a/bbb-install.sh +++ b/bbb-install.sh @@ -328,6 +328,8 @@ main() { ln -s "$LINK_PATH" "/var/bigbluebutton" fi + install_home + if [ ! -z "$PROVIDED_CERTIFICATE" ] ; then install_ssl elif [ ! -z "$HOST" ] && [ ! -z "$EMAIL" ] ; then @@ -708,6 +710,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