-
Notifications
You must be signed in to change notification settings - Fork 169
/
Copy pathbtbox.sh
199 lines (188 loc) · 4.44 KB
/
btbox.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
#! /bin/bash
# By BlueSkyXN
#https://github.com/BlueSkyXN/SKY-BOX
#彩色
red(){
echo -e "\033[31m\033[01m$1\033[0m"
}
green(){
echo -e "\033[32m\033[01m$1\033[0m"
}
yellow(){
echo -e "\033[33m\033[01m$1\033[0m"
}
blue(){
echo -e "\033[34m\033[01m$1\033[0m"
}
#宝塔面板 官方版
#一键安装
#CentOS
function btof1(){
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh
}
#Ubuntu&Debian
function btof2(){
wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && sudo bash install.sh
}
#Python3通用版
function btof3(){
curl -sSO http://download.bt.cn/install/install_panel.sh && bash install_panel.sh
}
#升级与更新
function btof4(){
curl http://download.bt.cn/install/update6.sh|bash
}
#宝塔面板 Hostcli 净化版 v7.6.0
#Centos
function btcli1(){
yum install -y wget && wget -O install.sh http://v7.hostcli.com/install/install_6.0.sh --no-check-certificate && sh install.sh
}
#Ubuntu&Debian
function btcli2(){
wget -O install.sh http://v7.hostcli.com/install/install-ubuntu_6.0.sh --no-check-certificate && sudo bash install.sh
}
#一键转移/升级
function btcli3(){
curl http://v7.hostcli.com/install/update6.sh|bash
}
#宝塔面板 Fenhao 开心版 v7.7.0
#CentOS
function btfh1(){
yum install -y wget && wget -O install.sh http://download.bt.sy/ltd/install/install_6.0.sh && sh install.sh
}
#Ubuntu&Debian
function btfh2(){
wget -O install.sh http://download.bt.sy/ltd/install/install-ubuntu_6.0.sh && sudo bash install.sh
}
#Python3通用版 已整合ARM
function btfh3(){
curl -sSO http://download.bt.sy/ltd/install/install_panel.sh && bash install_panel.sh
}
#升级与更新
function btfh4(){
curl http://download.bt.sy/ltd/install/update6.sh|bash
}
#修复软件商店
function btfh5(){
curl http://download.bt.sy/ltd/install/update6.sh|bash
}
#宝塔面板 bt.sy 开心版 v7.9.10-20230525
#https://bt.sb/bbs/thread-20541-1-1.html
#https://t.me/rsakuraban
#CentOS
function btsy1(){
yum install -y wget && wget -O install.sh http://io.bt.sy/install/install_6.0.sh && sh install.sh
}
#Ubuntu&Debian
function btsy2(){
wget -O install.sh http://io.bt.sy/install/install-ubuntu_6.0.sh && sudo bash install.sh
}
#Python3通用版
function btsy3(){
curl -sSO http://io.bt.sy/install/install_panel.sh && bash install_panel.sh
}
#升级与更新
function btsy4(){
curl https://io.bt.sy/install/update_panel.sh|bash
}
#修复软件商店
function btsy5(){
curl http://io.bt.sy/install/update6.sh|bash
}
#主菜单
function start_menu(){
clear
red " BlueSkyXN 综合工具箱 Linux Supported ONLY"
red " 宝塔面板综合安装脚本合集"
green " FROM: https://github.com/BlueSkyXN/SKY-BOX "
green " HELP: https://www.blueskyxn.com/202104/4465.html "
green " USE: wget -O btbox.sh https://raw.githubusercontent.com/BlueSkyXN/SKY-BOX/main/btbox.sh && chmod +x btbox.sh && clear && ./btbox.sh "
yellow " =================================================="
red "宝塔面板 官方版 v7.6.0"
green " 11. CentOS"
green " 12. Ubuntu&Debian"
green " 13. Python3通用版"
green " 14. 升级与更新"
red "宝塔面板 Hostcli 净化版 v7.6.0"
green " 21. Centos"
green " 22. Ubuntu&Debian"
green " 23. 一键转移/升级"
red "宝塔面板 Fenhao 开心版 v7.7.0"
green " 31. CentOS"
green " 32. Ubuntu&Debian"
green " 33. Python3通用版"
green " 34. 升级与更新"
green " 35. 修复软件商店"
red "宝塔面板 bt.sy 开心版 v7.9.10-20230525"
green " 41. CentOS"
green " 42. Ubuntu&Debian"
green " 43. Python3通用版"
green " 44. 升级与更新"
green " 45. 修复软件商店"
green " =================================================="
green " 0. 退出脚本"
echo
read -p "请输入数字:" menuNumberInput
case "$menuNumberInput" in
11 )
btof1
;;
12 )
btof2
;;
13 )
btof3
;;
14 )
btof4
;;
21 )
btcli1
;;
22 )
btcli2
;;
23 )
btcli3
;;
31 )
btfh1
;;
32 )
btfh2
;;
33 )
btfh3
;;
34 )
btfh4
;;
35 )
btfh5
;;
41 )
btsy1
;;
42 )
btsy2
;;
43 )
btsy3
;;
44 )
btsy4
;;
45 )
btsy5
;;
0 )
exit 1
;;
* )
clear
red "请输入正确数字 !"
start_menu
;;
esac
}
start_menu "first"