From 6a19b76a8dde37965e1be711c16555fe8ccc035f Mon Sep 17 00:00:00 2001 From: boypt Date: Fri, 22 Feb 2019 11:32:35 +0800 Subject: [PATCH] full v2ray pack --- src/download-v2ray.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/download-v2ray.sh b/src/download-v2ray.sh index b291ddb..9af4d84 100644 --- a/src/download-v2ray.sh +++ b/src/download-v2ray.sh @@ -26,12 +26,9 @@ _download_v2ray_file() { " && exit 1 fi - unzip $v2ray_tmp_file -d "/tmp/v2ray/" - mkdir -p /usr/bin/v2ray - cp -f "/tmp/v2ray/v2ray" "/usr/bin/v2ray/v2ray" - chmod +x "/usr/bin/v2ray/v2ray" - cp -f "/tmp/v2ray/v2ctl" "/usr/bin/v2ray/v2ctl" - chmod +x "/usr/bin/v2ray/v2ctl" + unzip $v2ray_tmp_file -d "/usr/bin/v2ray/" + chmod +x /usr/bin/v2ray/v2ray /usr/bin/v2ray/v2ctl + setcap CAP_NET_BIND_SERVICE=+eip /usr/bin/v2ray/v2ray } _install_v2ray_service() {