Skip to content

Commit

Permalink
fix: A wrong installation path
Browse files Browse the repository at this point in the history
1. Move the .dat file from the lib directory to the share directory.

issue #17
  • Loading branch information
dctxmei committed Aug 15, 2020
1 parent f3b6f3d commit e6bd2e5
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ https://wiki.linuxfoundation.org/lsb/fhs
```
installed: /usr/local/bin/v2ray
installed: /usr/local/bin/v2ctl
installed: /usr/local/lib/v2ray/geoip.dat
installed: /usr/local/lib/v2ray/geosite.dat
installed: /usr/local/share/v2ray/geoip.dat
installed: /usr/local/share/v2ray/geosite.dat
installed: /usr/local/etc/v2ray/00_log.json
installed: /usr/local/etc/v2ray/01_api.json
installed: /usr/local/etc/v2ray/02_dns.json
Expand Down
4 changes: 2 additions & 2 deletions install-dat-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

# 0 0 * * * /usr/local/bin/install-dat-release > /dev/null 2>&1

# You can modify it to /usr/local/share/v2ray/
V2RAY="/usr/local/lib/v2ray/"
# You can modify it to /usr/local/lib/v2ray/
V2RAY="/usr/local/share/v2ray/"
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"

Expand Down
4 changes: 2 additions & 2 deletions install-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
# https://github.com/v2fly/fhs-install-v2ray/issues

# If you modify the following variables, you also need to modify the unit file yourself:
# You can modify it to /usr/local/share/v2ray/
DAT_PATH='/usr/local/lib/v2ray/'
# You can modify it to /usr/local/lib/v2ray/
DAT_PATH='/usr/local/share/v2ray/'
# You can modify it to /etc/v2ray/
JSON_PATH='/usr/local/etc/v2ray/'

Expand Down
2 changes: 1 addition & 1 deletion systemd/system/v2ray.service
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ User=nobody
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
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/
Restart=on-failure

Expand Down
2 changes: 1 addition & 1 deletion systemd/system/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ User=nobody
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
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
Restart=on-failure

Expand Down

1 comment on commit e6bd2e5

@Element-Square
Copy link

@Element-Square Element-Square commented on e6bd2e5 Aug 15, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我想知道 ,这是不是原版2vray,配置文件在哪里,怎么用的

Please sign in to comment.