-
Notifications
You must be signed in to change notification settings - Fork 71
/
install.sh
executable file
·45 lines (37 loc) · 963 Bytes
/
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
#!/bin/bash
function install_ffmpeg {
wget https://github.com/stvs/ffmpeg-static/archive/master.zip
unzip master.zip
rm master.zip
cd ffmpeg-static-master
./build-ubuntu.sh
cp ./target/bin/* /usr/bin
cd ../
rm -rf ffmpeg-static-master
}
# 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 ffmpeg
exists=$(which ffmpeg);
if [ -z $exists ]
then
#install_ffmpeg
echo "Please install ffmpeg and try again"
exit 1
else
echo "ffmpeg is already installed"
fi
# Create log directory
mkdir -p /var/log/bigbluebutton/download
chown tomcat7:tomcat7 /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