|
|
@ -10,7 +10,7 @@ none='\e[0m' |
|
|
|
# Root |
|
|
|
# Root |
|
|
|
[[ $(id -u) != 0 ]] && echo -e " 哎呀……请使用 ${red}root ${none}用户运行 ${yellow}~(^_^) ${none}" && exit 1 |
|
|
|
[[ $(id -u) != 0 ]] && echo -e " 哎呀……请使用 ${red}root ${none}用户运行 ${yellow}~(^_^) ${none}" && exit 1 |
|
|
|
|
|
|
|
|
|
|
|
_version="v2.35" |
|
|
|
_version="v2.36" |
|
|
|
|
|
|
|
|
|
|
|
cmd="apt-get" |
|
|
|
cmd="apt-get" |
|
|
|
|
|
|
|
|
|
|
@ -88,6 +88,7 @@ _v2ray_sh="/usr/local/sbin/v2ray" |
|
|
|
if [[ ! -f $_v2ray_sh ]]; then |
|
|
|
if [[ ! -f $_v2ray_sh ]]; then |
|
|
|
mv -f /usr/local/bin/v2ray $_v2ray_sh |
|
|
|
mv -f /usr/local/bin/v2ray $_v2ray_sh |
|
|
|
chmod +x $_v2ray_sh |
|
|
|
chmod +x $_v2ray_sh |
|
|
|
|
|
|
|
echo -e "\n $yellow 警告: 请重新登录 SSH 以避免出现 v2ray 命令未找到的情况。$none \n" && exit 1 |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
if [ $v2ray_pid ]; then |
|
|
|
if [ $v2ray_pid ]; then |
|
|
|