forked from createwebinar/bbb-download
-
Notifications
You must be signed in to change notification settings - Fork 4
/
install.sh
executable file
·49 lines (36 loc) · 1.52 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash
# Check if we are root
uid=$(id -u)
if [ $uid -ne 0 ]
then
echo "Please run as root"
exit 1
fi
# Install python and pip
apt-get install -y python
apt-get install -y python-pip
#install google api python client
pip install --upgrade google-api-python-client
pip install oauth2client
# Install additional libs need to convertation process
apt-get install -y curl libsdl2-mixer-2.0-0 libsdl2-image-2.0-0 libsdl2-2.0-0 libva-x11-1 libva-drm1 libfdk-aac-dev
# Copy ffmpeg to /opt/ffmpeg folder
mkdir -p /opt/ffmpeg
cp ffmpeg/* /opt/ffmpeg
chmod 755 /opt/ffmpeg/ffmpeg
chmod 755 /usr/local/bigbluebutton/core/scripts/post_publish/*
#Set up NGINX to make MP4 files available for createwebinar.com
mkdir /var/www/bigbluebutton-default/download
ln -s /var/bigbluebutton/published/presentation /var/www/bigbluebutton-default/download
chmod 0755 /var/bigbluebutton/published/presentation
# Create log directory
mkdir -p /var/log/bigbluebutton/download
chown tomcat7:tomcat7 /var/log/bigbluebutton/download
chmod -R go+rw /var/log/bigbluebutton/download/
# Copy python scripts to post_publish directory
cp src/*.py /usr/local/bigbluebutton/core/scripts/post_publish
# Copy python scripts to post_publish directory
cp src/*.json /usr/local/bigbluebutton/core/scripts/post_publish
chown bigbluebutton:bigbluebutton /usr/local/bigbluebutton/core/scripts/post_publish/*.json
# Copy ruby script that controlls the download process
cp src/*.rb /usr/local/bigbluebutton/core/scripts/post_publish