scripts/customize: remove webui on managers with action

This commit is contained in:
backslashxx 2024-12-26 01:38:59 +08:00 committed by KOWX712
parent 420ebda8bc
commit 419c07745e

View File

@ -65,3 +65,14 @@ if [ -f "/data/adb/pif.json" ]; then
ui_print "- Backup custom pif.json"
mv -f /data/adb/pif.json /data/adb/pif.json.old
fi
# give exec perm to action.sh
chmod +x "$MODPATH/action.sh"
# action.sh, ap 10927, ksu 11981
if { [ "$KSU" = "true" ] && [ "$KSU_VER_CODE" -ge 11981 ]; } ||
{ [ "$APATCH" = "true" ] && [ "$APATCH_VER_CODE" -ge 10927 ]; }; then
# we dont need the webui workaround
# since manager has action
rm -rf "$MODPATH/webroot"
fi