-
Notifications
You must be signed in to change notification settings - Fork 0
/
ssr
56 lines (48 loc) · 1.12 KB
/
ssr
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
#!/bin/bash
export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
#Check Root
[ $(id -u) != "0" ] && { echo "Error: You must be root to run this script"; exit 1; }
echo "*******************"
echo ""
echo "欢迎使用 AR (Python Base)
"
echo "输入数字选择功能:"
echo ""
echo "1.服务器控制"
echo "2.用户管理"
echo "3.全局流量管理"
echo "4.实验性功能"
echo "5.程序管理"
echo "6.一键添加用户(使用最优配置)"
echo "0.退出程序"
while :; do echo
read -p "请选择: " choice
if [[ ! $choice =~ ^[0-6]$ ]]; then
echo "输入错误! 请输入正确的数字!"
else
echo
echo
break
fi
done
if [[ $choice == 0 ]];then
exit 0
fi
if [[ $choice == 1 ]];then
bash /usr/local/SSR-Bash-Python/server.sh
fi
if [[ $choice == 2 ]];then
bash /usr/local/SSR-Bash-Python/user.sh
fi
if [[ $choice == 3 ]];then
bash /usr/local/SSR-Bash-Python/traffic.sh
fi
if [[ $choice == 4 ]];then
bash /usr/local/SSR-Bash-Python/dev.sh
fi
if [[ $choice == 5 ]];then
bash /usr/local/SSR-Bash-Python/self.sh
fi
if [[ $choice == 6 ]];then
bash /usr/local/SSR-Bash-Python/user/easyadd.sh
fi