forked from mmmwhy/pure_attention
-
Notifications
You must be signed in to change notification settings - Fork 0
/
youtube.sh
35 lines (35 loc) · 1.3 KB
/
youtube.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
#!/bin/bash
#Check Root
[ $(id -u) != "0" ] && { echo "Error: You must be root to run this script"; exit 1; }
sudo apt-get -y update && sudo apt-get -y install python3 git
cd ~
git clone https://github.com/aploium/zmirror-onekey.git --depth=1
cd zmirror-onekey
sudo python3 deploy.py
rm -rf ~/*
sudo systemctl enable cron.service
sudo systemctl start cron.service
echo 'dns-nameservers 8.8.8.8' /etc/network/interfaces
touch /etc/MyCrontab
echo 'SHELL=/bin/bash' >> /etc/MyCrontab
echo 'PATH=/sbin:/bin:/usr/sbin:/usr/bin' >> /etc/MyCrontab
echo '0 0 * * * wget https://raw.githubusercontent.com/sy618/hosts/master/FQ -O hosts&&cp hosts /etc/&&rm -rf hosts' >> /etc/MyCrontab
echo '0 2 * * * /sbin/shutdown -r' >> /etc/MyCrontab
crontab /etc/MyCrontab
echo "
** **
* * * *
* * *
* *
* *
* 91vps.win *
* *
* *
* *
* *
* *
* *
* *
* *
*
"