Merge pull request #42 from v2fly/develop

fix: A wrong installation path
pull/64/head
Dct Mei 2020-08-15 09:02:51 +00:00 committed by GitHub
commit 864e531534
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 8 deletions

View File

@ -9,8 +9,8 @@ https://wiki.linuxfoundation.org/lsb/fhs
``` ```
installed: /usr/local/bin/v2ray installed: /usr/local/bin/v2ray
installed: /usr/local/bin/v2ctl installed: /usr/local/bin/v2ctl
installed: /usr/local/lib/v2ray/geoip.dat installed: /usr/local/share/v2ray/geoip.dat
installed: /usr/local/lib/v2ray/geosite.dat installed: /usr/local/share/v2ray/geosite.dat
installed: /usr/local/etc/v2ray/00_log.json installed: /usr/local/etc/v2ray/00_log.json
installed: /usr/local/etc/v2ray/01_api.json installed: /usr/local/etc/v2ray/01_api.json
installed: /usr/local/etc/v2ray/02_dns.json installed: /usr/local/etc/v2ray/02_dns.json

View File

@ -13,8 +13,8 @@
# 0 0 * * * /usr/local/bin/install-dat-release > /dev/null 2>&1 # 0 0 * * * /usr/local/bin/install-dat-release > /dev/null 2>&1
# You can modify it to /usr/local/share/v2ray/ # You can modify it to /usr/local/lib/v2ray/
V2RAY="/usr/local/lib/v2ray/" V2RAY="/usr/local/share/v2ray/"
DOWNLOAD_LINK_GEOIP="https://github.com/v2ray/geoip/releases/latest/download/geoip.dat" DOWNLOAD_LINK_GEOIP="https://github.com/v2ray/geoip/releases/latest/download/geoip.dat"
DOWNLOAD_LINK_GEOSITE="https://github.com/v2ray/domain-list-community/releases/latest/download/dlc.dat" DOWNLOAD_LINK_GEOSITE="https://github.com/v2ray/domain-list-community/releases/latest/download/dlc.dat"

View File

@ -13,8 +13,8 @@
# https://github.com/v2fly/fhs-install-v2ray/issues # https://github.com/v2fly/fhs-install-v2ray/issues
# If you modify the following variables, you also need to modify the unit file yourself: # If you modify the following variables, you also need to modify the unit file yourself:
# You can modify it to /usr/local/share/v2ray/ # You can modify it to /usr/local/lib/v2ray/
DAT_PATH='/usr/local/lib/v2ray/' DAT_PATH='/usr/local/share/v2ray/'
# You can modify it to /etc/v2ray/ # You can modify it to /etc/v2ray/
JSON_PATH='/usr/local/etc/v2ray/' JSON_PATH='/usr/local/etc/v2ray/'

View File

@ -7,7 +7,7 @@ User=nobody
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
NoNewPrivileges=true NoNewPrivileges=true
Environment=V2RAY_LOCATION_ASSET=/usr/local/lib/v2ray/ Environment=V2RAY_LOCATION_ASSET=/usr/local/share/v2ray/
ExecStart=/usr/local/bin/v2ray -confdir /usr/local/etc/v2ray/ ExecStart=/usr/local/bin/v2ray -confdir /usr/local/etc/v2ray/
Restart=on-failure Restart=on-failure

View File

@ -7,7 +7,7 @@ User=nobody
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
NoNewPrivileges=true NoNewPrivileges=true
Environment=V2RAY_LOCATION_ASSET=/usr/local/lib/v2ray/ Environment=V2RAY_LOCATION_ASSET=/usr/local/share/v2ray/
ExecStart=/usr/local/bin/v2ray -config /usr/local/etc/v2ray/%i.json ExecStart=/usr/local/bin/v2ray -config /usr/local/etc/v2ray/%i.json
Restart=on-failure Restart=on-failure