fix #949
This commit is contained in:
@@ -26,7 +26,7 @@ _download_v2ray_file() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
unzip -o $v2ray_tmp_file -d "/usr/bin/v2ray/"
|
unzip -o $v2ray_tmp_file -d "/usr/bin/v2ray/"
|
||||||
chmod +x /usr/bin/v2ray/{v2ray,v2ctl}
|
chmod +x /usr/bin/v2ray/v2ray
|
||||||
if [[ ! $(cat /root/.bashrc | grep v2ray) ]]; then
|
if [[ ! $(cat /root/.bashrc | grep v2ray) ]]; then
|
||||||
echo "alias v2ray=$_v2ray_sh" >>/root/.bashrc
|
echo "alias v2ray=$_v2ray_sh" >>/root/.bashrc
|
||||||
fi
|
fi
|
||||||
|
2
v2ray.sh
2
v2ray.sh
@@ -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="v3.62"
|
_version="v3.63"
|
||||||
|
|
||||||
cmd="apt-get"
|
cmd="apt-get"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user