forked from alpapado/bbb-download
-
Notifications
You must be signed in to change notification settings - Fork 47
/
install.sh
executable file
·37 lines (29 loc) · 1.13 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
#!/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
apt-get install -y python
# 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 ruby script that controlls the download process
cp src/*.rb /usr/local/bigbluebutton/core/scripts/post_publish