Skip to content

Commit b97ee9a

Browse files
Update to version 5.5.0
1 parent 55a45d6 commit b97ee9a

File tree

4 files changed

+539
-398
lines changed

4 files changed

+539
-398
lines changed

Sing-Box_Config_Installer/Legacy-Menu.sh

Lines changed: 128 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ while true; do
1919
echo -e "8: \e[93mInstall\e[0m"
2020
echo -e "9: \e[93mModify Config\e[0m"
2121
echo -e "10: \e[93mAdd User\e[0m"
22-
echo -e "11: \e[93mRemove User\e[0m"
22+
echo -e "11: \e[93mRemove User\e[0m"
2323
echo -e "12: \e[93mShow User Configs\e[0m"
2424
echo -e "13: \e[93mEnable/Disable WARP\e[0m"
2525
echo -e "14: \e[93mUninstall\e[0m"
@@ -28,35 +28,35 @@ while true; do
2828
echo -e "16: \e[93mModify Config\e[0m"
2929
echo -e "17: \e[93mRegenerate Keys\e[0m"
3030
echo -e "18: \e[93mAdd User\e[0m"
31-
echo -e "19: \e[93mRemove User\e[0m"
31+
echo -e "19: \e[93mRemove User\e[0m"
3232
echo -e "20: \e[93mShow User Configs\e[0m"
3333
echo -e "21: \e[93mEnable/Disable WARP\e[0m"
3434
echo -e "22: \e[93mUninstall\e[0m"
3535
echo ------------ShadowTLS---------------
3636
echo -e "23: \e[93mInstall\e[0m"
3737
echo -e "24: \e[93mModify Config\e[0m"
3838
echo -e "25: \e[93mAdd User\e[0m"
39-
echo -e "26: \e[93mRemove User\e[0m"
39+
echo -e "26: \e[93mRemove User\e[0m"
4040
echo -e "27: \e[93mShow User Configs\e[0m"
4141
echo -e "28: \e[93mEnable/Disable WARP\e[0m"
4242
echo -e "29: \e[93mUninstall\e[0m"
4343
echo ------------WebSocket---------------
4444
echo -e "30: \e[93mInstall\e[0m"
4545
echo -e "31: \e[93mModify Config\e[0m"
4646
echo -e "32: \e[93mAdd User\e[0m"
47-
echo -e "33: \e[93mRemove User\e[0m"
47+
echo -e "33: \e[93mRemove User\e[0m"
4848
echo -e "34: \e[93mShow User Configs\e[0m"
4949
echo -e "35: \e[93mEnable/Disable WARP\e[0m"
5050
echo -e "36: \e[93mUninstall\e[0m"
5151
echo --------------Naive-----------------
5252
echo -e "37: \e[93mInstall\e[0m"
5353
echo -e "38: \e[93mModify Config\e[0m"
5454
echo -e "39: \e[93mAdd User\e[0m"
55-
echo -e "40: \e[93mRemove User\e[0m"
55+
echo -e "40: \e[93mRemove User\e[0m"
5656
echo -e "41: \e[93mShow User Configs\e[0m"
5757
echo -e "42: \e[93mEnable/Disable WARP\e[0m"
5858
echo -e "43: \e[93mUninstall\e[0m"
59-
echo --------------WARP------------------
59+
echo --------------WARP------------------
6060
echo -e "44: \e[93mGenerate WARP+ Key\e[0m"
6161
echo -e "45: \e[93mGenerate WARP+ Wireguard Config\e[0m"
6262
echo -e "46: \e[93mShow Config\e[0m"
@@ -77,11 +77,66 @@ while true; do
7777
;;
7878
1)
7979
clear
80-
install_hysteria
80+
hysteria_check="/etc/hysteria2/server.json"
81+
82+
if [ -e "$hysteria_check" ]; then
83+
whiptail --msgbox "Hysteria2 is Already installed " 10 30
84+
clear
85+
else
86+
while true; do
87+
echo "Please select an option:"
88+
echo "1: With OBFS"
89+
echo "2: Without OBFS"
90+
read -p "Enter your choice: " sub_choice
91+
92+
case $sub_choice in
93+
1)
94+
clear
95+
install_hysteria obfs
96+
;;
97+
2)
98+
clear
99+
install_hysteria native
100+
;;
101+
*)
102+
echo "Invalid choice. Please select a valid option."
103+
;;
104+
esac
105+
break
106+
done
107+
fi
81108
;;
109+
82110
2)
83111
clear
84-
modify_hysteria_config
112+
hysteria_check="/etc/hysteria2/server.json"
113+
114+
if [ -e "$hysteria_check" ]; then
115+
while true; do
116+
echo "Please select an option:"
117+
echo "1: With OBFS"
118+
echo "2: Without OBFS"
119+
read -p "Enter your choice: " sub_choice
120+
121+
case $sub_choice in
122+
1)
123+
clear
124+
modify_hysteria obfs
125+
;;
126+
2)
127+
clear
128+
modify_hysteria native
129+
;;
130+
*)
131+
echo "Invalid choice. Please select a valid option."
132+
;;
133+
esac
134+
break
135+
done
136+
else
137+
whiptail --msgbox "Hysteria2 is not installed yet." 10 30
138+
clear
139+
fi
85140
;;
86141
3)
87142
clear
@@ -90,7 +145,7 @@ while true; do
90145
4)
91146
clear
92147
remove_hysteria_user
93-
;;
148+
;;
94149
5)
95150
clear
96151
show_hysteria_config
@@ -118,7 +173,7 @@ while true; do
118173
11)
119174
clear
120175
remove_tuic_user
121-
;;
176+
;;
122177
12)
123178
clear
124179
show_tuic_config
@@ -133,24 +188,78 @@ while true; do
133188
;;
134189
15)
135190
clear
136-
install_reality
191+
reality_check="/etc/reality/config.json"
192+
193+
if [ -e "$reality_check" ]; then
194+
whiptail --msgbox "Reality is Already installed " 10 30
195+
clear
196+
else
197+
while true; do
198+
echo "Please select Transport Type:"
199+
echo "1: gRPC"
200+
echo "2: TCP"
201+
read -p "Enter your choice: " sub_choice
202+
203+
case $sub_choice in
204+
1)
205+
clear
206+
install_reality grpc
207+
;;
208+
2)
209+
clear
210+
install_reality tcp
211+
;;
212+
*)
213+
echo "Invalid choice. Please select a valid option."
214+
;;
215+
esac
216+
break
217+
done
218+
fi
137219
;;
138220
16)
139221
clear
140-
modify_reality_config
222+
reality_check="/etc/reality/config.json"
223+
224+
if [ -e "$reality_check" ]; then
225+
while true; do
226+
echo "Please select Transport Type:"
227+
echo "1: gRPC"
228+
echo "2: TCP"
229+
read -p "Enter your choice: " sub_choice
230+
231+
case $sub_choice in
232+
1)
233+
clear
234+
modify_reality grpc
235+
;;
236+
2)
237+
clear
238+
modify_reality tcp
239+
;;
240+
*)
241+
echo "Invalid choice. Please select a valid option."
242+
;;
243+
esac
244+
break
245+
done
246+
else
247+
whiptail --msgbox "Reality is not installed yet." 10 30
248+
clear
249+
fi
141250
;;
142251
17)
143252
clear
144253
regenerate_keys
145-
;;
254+
;;
146255
18)
147256
clear
148257
add_reality_user
149258
;;
150259
19)
151260
clear
152261
remove_reality_user
153-
;;
262+
;;
154263
20)
155264
clear
156265
show_reality_config
@@ -178,7 +287,7 @@ while true; do
178287
26)
179288
clear
180289
remove_shadowtls_user
181-
;;
290+
;;
182291
27)
183292
clear
184293
show_shadowtls_config
@@ -206,7 +315,7 @@ while true; do
206315
33)
207316
clear
208317
remove_ws_user
209-
;;
318+
;;
210319
34)
211320
clear
212321
show_ws_config
@@ -218,7 +327,7 @@ while true; do
218327
36)
219328
clear
220329
uninstall_ws
221-
;;
330+
;;
222331
37)
223332
clear
224333
install_naive
@@ -234,7 +343,7 @@ while true; do
234343
40)
235344
clear
236345
remove_naive_user
237-
;;
346+
;;
238347
41)
239348
clear
240349
show_naive_config
@@ -246,7 +355,7 @@ while true; do
246355
43)
247356
clear
248357
uninstall_naive
249-
;;
358+
;;
250359
44)
251360
clear
252361
warp_key_gen

Sing-Box_Config_Installer/Menu-Selector.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#!/bin/bash
22

3+
source <(curl -sSL https://raw.githubusercontent.com/TheyCallMeSecond/config-examples/main/Sing-Box_Config_Installer/Source.sh)
4+
35
if [[ $EUID -ne 0 ]]; then
46
echo "This script requires root privileges. Please run it as root!"
57
exit 1
68
fi
79

8-
source <(curl -sSL https://raw.githubusercontent.com/TheyCallMeSecond/config-examples/main/Sing-Box_Config_Installer/Source.sh)
9-
1010
if ! grep -qxF 'alias sci="bash <(curl -fsSL https://bit.ly/config-installer)"' ~/.bashrc; then
1111
echo 'alias sci="bash <(curl -fsSL https://bit.ly/config-installer)"' >> ~/.bashrc
1212
source ~/.bashrc

0 commit comments

Comments
 (0)