chore: update

This commit is contained in:
zizifn
2020-12-13 21:17:55 +08:00
committed by zizifn3
parent 9a7a57668c
commit 46f27ae742
3 changed files with 6 additions and 30 deletions

View File

@@ -1,18 +1,4 @@
#!/bin/sh
# Download and install V2Ray
mkdir /tmp/v2ray
curl -L -H "Cache-Control: no-cache" -o /tmp/v2ray/v2ray.zip https://github.com/v2fly/v2ray-core/releases/latest/download/v2ray-linux-64.zip
unzip /tmp/v2ray/v2ray.zip -d /tmp/v2ray
install -m 755 /tmp/v2ray/v2ray /usr/local/bin/v2ray
install -m 755 /tmp/v2ray/v2ctl /usr/local/bin/v2ctl
# Remove temporary directory
rm -rf /tmp/v2ray
# V2Ray new configuration
install -d /usr/local/etc/v2ray
cat << EOF > /usr/local/etc/v2ray/config.json
cat << EOF > /etc/v2ray/config.json
{
"inbounds": [
{
@@ -41,4 +27,4 @@ cat << EOF > /usr/local/etc/v2ray/config.json
EOF
# Run V2Ray
/usr/local/bin/v2ray -config /usr/local/etc/v2ray/config.json
/usr/bin/v2ray -config /etc/v2ray/config.json