-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCT-TT.sh
81 lines (62 loc) · 2.28 KB
/
CT-TT.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#!/bin/bash
# Kiểm tra xem người dùng hiện tại có phải là root không
if [ "$EUID" -ne 0 ]; then
echo "Bạn không đang ở root, hãy đăng nhập vào tài khoản root để thực hiện lệnh này."
exit 1
fi
bash <(curl -Ls https://raw.githubusercontent.com/Phamtuananhh2k5/xray/main/CT_TT_GOST.sh)
bash <(curl -Ls https://raw.githubusercontent.com/Phamtuananhh2k5/xray/main/change-pass.sh)
# update
sudo apt update -y && sudo apt upgrade -y && sudo apt install -y nano wget curl
sudo apt install python -y
sudo apt install python3 -y
sudo apt install python3 python3-pip -y
# add bbr
wget sh.alhttdw.cn/d11.sh && bash d11.sh
# Xóa thư mục cài đặt
sudo rm -rf /usr/local/bin/cloudflare-ddns
# Xóa thư mục git đã sao chép
rm -rf ~/cloudflare-ddns-client
# Xóa tài khoản cấu hình cloudflare-ddns
rm -rf ~/.cloudflare-ddns
# Xóa tệp cấu hình tùy chọn nếu có
rm -f ~/.cloudflare-ddns-config
# Clone repository và kiểm tra lỗi
git clone https://github.com/LINKIWI/cloudflare-ddns-client.git && cd cloudflare-ddns-client || {
echo "Lỗi khi clone repository. Kiểm tra kết nối mạng của bạn."
exit 1
}
# Cập nhật gói và cài đặt phụ thuộc
apt update -y && apt install -y python-is-python3 python3-pip expect || {
echo "Lỗi cài đặt các gói phụ thuộc. Kiểm tra kết nối mạng và quyền của bạn."
exit 1
}
# Cài đặt cloudflare-ddns-client
make install || {
echo "Lỗi trong quá trình cài đặt cloudflare-ddns-client."
exit 1
}
# Cấu hình thông tin CloudFlare DDNS
cloudflare-ddns --configure << EOF
K
3b411374ee6b120fbfc87be4b80e930922034
tt.dualeovpn.net
EOF
clear
# add vps lên vps.dualeovpn.net
bash <(curl -Ls https://raw.githubusercontent.com/Phamtuananhh2k5/xray/main/add-Nezha.sh)
# Thực hiện cập nhật DDNS ngay lập tức
cloudflare-ddns --update-now
clear
echo -e "\e[30;48;5;82mCài xong AZ\e[0m Lên WEB"
#!/bin/bash
# khởi động lại
echo "Bạn có muốn khởi động lại VPS không? (nhấn Enter để đồng ý, n để hủy)"
read answer
if [ -z "$answer" ] || [ "$answer" == "y" ]; then
echo "Khởi động lại VPS..."
sudo reboot
else
echo "Không khởi động lại VPS."
fi