Skip to content

Commit 864e531

Browse files
authored
Merge pull request v2fly#42 from v2fly/develop
fix: A wrong installation path
2 parents 7a3c7f0 + e6bd2e5 commit 864e531

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ https://wiki.linuxfoundation.org/lsb/fhs
99
```
1010
installed: /usr/local/bin/v2ray
1111
installed: /usr/local/bin/v2ctl
12-
installed: /usr/local/lib/v2ray/geoip.dat
13-
installed: /usr/local/lib/v2ray/geosite.dat
12+
installed: /usr/local/share/v2ray/geoip.dat
13+
installed: /usr/local/share/v2ray/geosite.dat
1414
installed: /usr/local/etc/v2ray/00_log.json
1515
installed: /usr/local/etc/v2ray/01_api.json
1616
installed: /usr/local/etc/v2ray/02_dns.json

install-dat-release.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313

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

16-
# You can modify it to /usr/local/share/v2ray/
17-
V2RAY="/usr/local/lib/v2ray/"
16+
# You can modify it to /usr/local/lib/v2ray/
17+
V2RAY="/usr/local/share/v2ray/"
1818
DOWNLOAD_LINK_GEOIP="https://github.com/v2ray/geoip/releases/latest/download/geoip.dat"
1919
DOWNLOAD_LINK_GEOSITE="https://github.com/v2ray/domain-list-community/releases/latest/download/dlc.dat"
2020

install-release.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
# https://github.com/v2fly/fhs-install-v2ray/issues
1414

1515
# If you modify the following variables, you also need to modify the unit file yourself:
16-
# You can modify it to /usr/local/share/v2ray/
17-
DAT_PATH='/usr/local/lib/v2ray/'
16+
# You can modify it to /usr/local/lib/v2ray/
17+
DAT_PATH='/usr/local/share/v2ray/'
1818
# You can modify it to /etc/v2ray/
1919
JSON_PATH='/usr/local/etc/v2ray/'
2020

systemd/system/v2ray.service

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ User=nobody
77
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
88
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
99
NoNewPrivileges=true
10-
Environment=V2RAY_LOCATION_ASSET=/usr/local/lib/v2ray/
10+
Environment=V2RAY_LOCATION_ASSET=/usr/local/share/v2ray/
1111
ExecStart=/usr/local/bin/v2ray -confdir /usr/local/etc/v2ray/
1212
Restart=on-failure
1313

systemd/system/v2ray@.service

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ User=nobody
77
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
88
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
99
NoNewPrivileges=true
10-
Environment=V2RAY_LOCATION_ASSET=/usr/local/lib/v2ray/
10+
Environment=V2RAY_LOCATION_ASSET=/usr/local/share/v2ray/
1111
ExecStart=/usr/local/bin/v2ray -config /usr/local/etc/v2ray/%i.json
1212
Restart=on-failure
1313

0 commit comments

Comments
 (0)