-
Notifications
You must be signed in to change notification settings - Fork 79
/
ssr
35 lines (31 loc) · 864 Bytes
/
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
#!/bin/bash
export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
#Check Root
[ $(id -u) != "0" ] && { echo "${CFAILURE}Error: You must be root to run this script${CEND}"; exit 1; }
echo "欢迎使用 SSR-Bash (Python Base) Author:Kirito"
echo "输入数字选择功能:"
echo ""
echo "1.服务器控制"
echo "2.用户管理"
echo "3.全局流量管理"
echo "4.实验性功能"
while :; do echo
read -p "请选择: " choice
if [[ ! $choice =~ ^[1-4]$ ]]; then
echo "${CWARNING}输入错误! 请输入正确的数字!${CEND}"
else
break
fi
done
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