forked from soal001/jiotv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdate.sh
13 lines (13 loc) · 924 Bytes
/
update.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
git clone https://github.com/soal001/jiotv
rm -rf /data/data/com.termux/files/usr/share/apache2/default-site/htdocs/
mkdir /data/data/com.termux/files/usr/share/apache2/default-site/htdocs/
cp -r jiotv/* /data/data/com.termux/files/usr/share/apache2/default-site/htdocs && rm -rf jiotv/
rm /data/data/com.termux/files/usr/share/apache2/default-site/htdocs/httpd.conf /data/data/com.termux/files/usr/share/apache2/default-site/htdocs/android.sh /data/data/com.termux/files/usr/share/apache2/default-site/htdocs/jiotv.sh
mkdir -p .termux/boot
mv /data/data/com.termux/files/usr/share/apache2/default-site/htdocs/auto_boot.sh ./.termux/boot/
apachectl start
termux-wake-lock
echo 'JIO TV' | figlet
echo 'PHP \n SERVER' | figlet
echo '\033[42m Server Installed Successfully.\n Go to the below Address \n to login and continue setup \033[0m'
echo '\033[32m '`ip route get 1.2.3.4 | awk '{print $9}'`':8080\n\033[0m'