[issue-17504] - fix deploy.sh to embrace other formats
This commit is contained in:
parent
677ecd7406
commit
469665273c
@ -23,6 +23,7 @@ sudo cp core/Gemfile /usr/local/bigbluebutton/core/Gemfile
|
||||
sudo rm -rf /usr/local/bigbluebutton/core/lib
|
||||
sudo cp -r core/lib /usr/local/bigbluebutton/core/
|
||||
sudo rm -rf /usr/local/bigbluebutton/core/scripts
|
||||
sudo rm -rf /usr/local/bigbluebutton/core/playback
|
||||
sudo cp -r core/scripts /usr/local/bigbluebutton/core/
|
||||
sudo rm -rf /var/bigbluebutton/playback/presentation/0.81/
|
||||
sudo rm -rf /var/bigbluebutton/playback/presentation/0.9.0/
|
||||
@ -34,8 +35,11 @@ function deploy_format() {
|
||||
do
|
||||
playback_dir="$format/playback/$format"
|
||||
scripts_dir="$format/scripts"
|
||||
if [ -d $playback_dir ]; then sudo cp -r $playback_dir /var/bigbluebutton/playback/; fi
|
||||
nginx_file="$format/scripts/*.nginx"
|
||||
if ([ -d $playback_dir ] & [ $format = "presentation" ]); then sudo cp -r $playback_dir /var/bigbluebutton/playback/; fi
|
||||
if ([ -d $playback_dir ] & [ $format != "presentation" ]); then sudo mkdir -p /usr/local/bigbluebutton/core/playback/$format; sudo cp -r $playback_dir /usr/local/bigbluebutton/core/playback/; fi
|
||||
if [ -d $scripts_dir ]; then sudo cp -r $scripts_dir/* /usr/local/bigbluebutton/core/scripts/; fi
|
||||
if [ -f $nginx_file ]; then sudo cp $scripts_dir/*.nginx /usr/share/bigbluebutton/nginx/; fi
|
||||
sudo mkdir -p /var/log/bigbluebutton/$format /var/bigbluebutton/published/$format /var/bigbluebutton/recording/publish/$format
|
||||
done
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user