Skip to content

Commit

Permalink
fix: cap_net_admin judgment error
Browse files Browse the repository at this point in the history
  • Loading branch information
DDSRem committed Dec 15, 2023
1 parent ace089d commit 425a06d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion info.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"Release_Version": "v4.4.28",
"Release_Version": "v4.4.29",
"BGmi": {
"version": "v4.4.7"
},
Expand Down
8 changes: 4 additions & 4 deletions rootfs/etc/s6-overlay/s6-rc.d/svc-aria2-ban/run
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
# shellcheck shell=bash

if [ "${BGMI_VERSION}" == "aria2" ]; then
if capsh --print | grep -q 'cap_net_admin'; then
exec \
aria2b -u "http://127.0.0.1:${ARIA2_RPC_PORT}/jsonrpc" -s "${ARIA2_RPC_SECRET}"
else
if capsh --print | grep -q '!cap_net_admin'; then
INFO "Aria2-ban does not start"
exec \
tail -f /dev/null
else
exec \
aria2b -u "http://127.0.0.1:${ARIA2_RPC_PORT}/jsonrpc" -s "${ARIA2_RPC_SECRET}"
fi
else
exec \
Expand Down

0 comments on commit 425a06d

Please sign in to comment.