Skip to content

Commit

Permalink
Update bbb-install.sh
Browse files Browse the repository at this point in the history
Fix issue bigbluebutton#265 (1/2): Add function to create home directory structure if it doesn't exist.
  • Loading branch information
michi-80337 authored May 19, 2021
1 parent 856c5da commit 765c78d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions bbb-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 765c78d

Please sign in to comment.