forked from grimelinse/FOS-Streaming
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate1.sh
More file actions
23 lines (22 loc) · 780 Bytes
/
update1.sh
File metadata and controls
23 lines (22 loc) · 780 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
# Tested on Ubuntu Ubuntu 14.04 and 15.04
# feel free to ask me if you have any question sevan@tyfix.nl
# git clone https://github.com/zgelici/FOS-Streaming.git
# Install chmod 755 update1.sh && ./update1.sh
echo "##UPDATE##"
rm -r /usr/src/FOS-Streaming
cd /usr/local/nginx/html
mv /usr/local/nginx/html/config.php /tmp/
rm -r /usr/local/nginx/html/*
cd /usr/src/
git clone https://github.com/zgelici/FOS-Streaming.git
cd /usr/src/FOS-Streaming/
mv /usr/src/FOS-Streaming/* /usr/local/nginx/html/
mv /tmp/config.php /usr/local/nginx/html
cd /usr/local/nginx/html/
php /usr/src/composer.phar install
mkdir /usr/local/nginx/html/hl
chmod -R 777 /usr/local/nginx/html/hl
mkdir /usr/local/nginx/html/cache
chmod -R 777 /usr/local/nginx/html/cache
echo "Update finshed"