fix: update fail

reference:
github.com/bindhosts/bindhosts/commit/7aacf5afacd019353f788991f47afa1382ccff6b
github.com/bindhosts/bindhosts/commit/c1bcc06869da5255c0766dc8c2072bb98e1acd6b

Co-Authored-By: backslashxx <118538522+backslashxx@users.noreply.github.com>
This commit is contained in:
KOWX712
2025-06-05 15:21:35 +08:00
parent 1acb97d1b6
commit 2ff4eec61e
2 changed files with 26 additions and 12 deletions

View File

@@ -17,3 +17,10 @@ fi
[ -L "$TS/webroot" ] && rm -f "$TS/webroot"
[ -L "$TS/action.sh" ] && rm -f "$TS/action.sh"
# detect root manager
[ "$APATCH" = "true" ] && MANAGER="APATCH"
[ "$KSU" = "true" ] && MANAGER="KSU"
[ ! "$APATCH" = "true" ] && [ ! "$KSU" = "true" ] && MANAGER="MAGISK"
echo "MANAGER=$MANAGER" > "$MODPATH/common/manager.sh"
chmod 755 "$MODPATH/common/manager.sh"