initial commit
This commit is contained in:
commit
13eace9ce9
219 files changed
+6918
No files matched your search
@@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
state=/var/lib/xray-lists
|
||||
out=$(/opt/xray-lists/venv/bin/xray-lists --config /etc/xray-lists/config.yaml)
|
||||
|
||||
echo "$out"
|
||||
|
||||
if echo "$out" | grep -A 10 "changed:" | grep -q "nftsets.conf"; then
|
||||
touch "$state/.reload-dnsmasq"
|
||||
fi
|
||||
if echo "$out" | grep -A 10 "changed:" | grep -q "\.elements\.nft"; then
|
||||
touch "$state/.reload-nft"
|
||||
fi
|
||||
|
||||
exit 0
|
||||
Reference in new issue
Block a user