summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAkinoKaede2020-11-29 22:52:50 +0800
committerAkinoKaede2020-11-29 22:53:19 +0800
commitba7992a6a90ab0111c5bdc7b99ca77eb4f383062 (patch)
tree166f7c22ea681447fc8ef8821f797c9fed611413
parent87f706fca3fd3f1c7aad46b9134647849933008b (diff)
downloadaur-ba7992a6a90ab0111c5bdc7b99ca77eb4f383062.tar.gz
fix: systemdlLoctaion assest environment
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD6
-rw-r--r--xray.service1
-rw-r--r--xray@.service1
4 files changed, 8 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e2730add6a0..1fd58d3294c 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = xray
pkgdesc = The best v2ray-core, with XTLS support.
pkgver = 1.0.0
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/XTLS/Xray-core
arch = any
license = MPLv2
@@ -21,8 +21,8 @@ pkgbase = xray
sha512sums = 2000211cbf987adaee7f278cc8cb23268965caab3bc46401f9324f2beaad95bec11012f5f4500f1016f4b75f097f3ac96cc5be2da7a6df0261582b3f23b3d78d
sha512sums = 9914fd3da02511b716951e521ca22006a6e8ad66e64d32cc7dd7dc3544a754174b37e35df6108ca217130f02763265d74f8bc56c4e52b262bdd48dcdb5310eb5
sha512sums = 532f66fe19196de0cc43df1812d6f32cbca7bbcacaa0cd4141bd80b3121b17eb8b23e0464765cf05a97b11e0213fb688eade83e393e36b3e7ebded6f0925de97
- sha512sums = 1d31e11c3a11090ee2616adfcf77a4a1013793c8f63a41e5293d07e889e34f85223b9f5a0791b649f22ecc5e18e12182b5b074e61aa36f5cd6de523f3c64f95d
- sha512sums = 6582aa9bf988acb2660a7172282768c217ad8335a55ccee916d7786c227bc62cc973d7d6d3b5632260c69eec98c15804c2b52cdd91c5f395d3a0fe36519586b4
+ sha512sums = f5ea93fab3a108ee30bbf9ac6f611df0397809f0c63c6bdb79dde60a49c3be175b4c915bd4d26313fbd2703b73f3a28f3e158352c521d1173baac219df73300d
+ sha512sums = 7c96cbea8d8e34d2458c3aeb31b03e9f322e3774193e0458f003f2336c7ff39b65a94840942f09b7c5e96287c74cdd8b7b96717e38ff230161ad887d34a86d8f
pkgname = xray
diff --git a/PKGBUILD b/PKGBUILD
index 03973f50fa1..967df524e2c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
pkgname=xray
pkgver=1.0.0
-pkgrel=1
+pkgrel=2
pkgdesc="The best v2ray-core, with XTLS support."
arch=('any')
url="https://github.com/XTLS/Xray-core"
@@ -25,8 +25,8 @@ sha512sums=(
'2000211cbf987adaee7f278cc8cb23268965caab3bc46401f9324f2beaad95bec11012f5f4500f1016f4b75f097f3ac96cc5be2da7a6df0261582b3f23b3d78d'
'9914fd3da02511b716951e521ca22006a6e8ad66e64d32cc7dd7dc3544a754174b37e35df6108ca217130f02763265d74f8bc56c4e52b262bdd48dcdb5310eb5'
'532f66fe19196de0cc43df1812d6f32cbca7bbcacaa0cd4141bd80b3121b17eb8b23e0464765cf05a97b11e0213fb688eade83e393e36b3e7ebded6f0925de97'
- '1d31e11c3a11090ee2616adfcf77a4a1013793c8f63a41e5293d07e889e34f85223b9f5a0791b649f22ecc5e18e12182b5b074e61aa36f5cd6de523f3c64f95d'
- '6582aa9bf988acb2660a7172282768c217ad8335a55ccee916d7786c227bc62cc973d7d6d3b5632260c69eec98c15804c2b52cdd91c5f395d3a0fe36519586b4'
+ 'f5ea93fab3a108ee30bbf9ac6f611df0397809f0c63c6bdb79dde60a49c3be175b4c915bd4d26313fbd2703b73f3a28f3e158352c521d1173baac219df73300d'
+ '7c96cbea8d8e34d2458c3aeb31b03e9f322e3774193e0458f003f2336c7ff39b65a94840942f09b7c5e96287c74cdd8b7b96717e38ff230161ad887d34a86d8f'
)
build() {
diff --git a/xray.service b/xray.service
index 77889293c64..f4215d9be8b 100644
--- a/xray.service
+++ b/xray.service
@@ -8,6 +8,7 @@ User=nobody
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
NoNewPrivileges=true
+Environment=XRAY_LOCATION_ASSET=/usr/share/v2ray
ExecStart=/usr/bin/xray run -config /etc/xray/config.json
Restart=on-failure
RestartPreventExitStatus=23
diff --git a/xray@.service b/xray@.service
index c7563486d11..bbb0461171a 100644
--- a/xray@.service
+++ b/xray@.service
@@ -8,6 +8,7 @@ User=nobody
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
NoNewPrivileges=true
+Environment=XRAY_LOCATION_ASSET=/usr/share/v2ray
ExecStart=/usr/bin/xray run -config /etc/xray/%i.json
Restart=on-failure
RestartPreventExitStatus=23