-
Notifications
You must be signed in to change notification settings - Fork 5
/
fresh_install.sh
29 lines (28 loc) · 1.11 KB
/
fresh_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
#!/bin/bash
echo "Updating sources"
apt-get update > /dev/null
sudo rm -rf /var/lib/apt/lists/* > /dev/null
apt-get update > /dev/null
apt-get upgrade -y --force-yes > /dev/null
echo "Done"
echo "Installing FOS Prerequisites..."
apt-get install php5-cli php5-curl curl zip unzip sudo nano dialog apt-utils python-software-properties apt lsb-release -y > /dev/null
echo "Done"
chmod 777 /tmp > /dev/null
rm -rf ~/bin > /dev/null
rm -rf ~/ffmpeg* > /dev/null
cd /tmp > /dev/null
rm -rf /tmp/* > /dev/null
echo "FOS-Streaming -> Web Platform"
wget -q https://github.com/raw/vaniusha3/IPTV-MD/master/install_panel.php -O install_panel.php > /dev/null
/usr/bin/php install_panel.php
echo "FOS-Streaming -> Database Deployment"
wget -q https://github.com/raw/vaniusha3/IPTV-MD/master/db_install.sh -O db_install.sh > /dev/null
chmod 755 db_install.sh > /dev/null
./db_install.sh
if [ ! -f /usr/bin/ffmpeg ]; then
echo "FOS-Streaming -> FFmpeg and FFprobe installation"
wget -q https://github.com/raw/vaniusha3/IPTV-MD/master/ffmpeg.sh -O ffmpeg.sh > /dev/null
chmod 755 ffmpeg.sh > /dev/null
./ffmpeg.sh
fi