From 4085a8fd71fc4a1a12616092744d221baebc12ed Mon Sep 17 00:00:00 2001 From: StressOzz <131419324+StressOzz@users.noreply.github.com> Date: Sun, 13 Sep 2026 17:05:21 +0500 Subject: [PATCH] Zapret Manager for LuCI Refactor removal command for clarity and add error suppression. --- Zapret-Manager.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Zapret-Manager.sh b/Zapret-Manager.sh index 347b0f6..210d3e2 100644 --- a/Zapret-Manager.sh +++ b/Zapret-Manager.sh @@ -850,7 +850,20 @@ LUCI_EDITION="/usr/libexec/rpcd/zapret-manager" install_zapret_manager_luci() { if [ -e "$LUCI_EDITION" ]; then echo -e "\n${MAGENTA}Удаляем Zapret Manager для LuCI${NC}" - rm -rf /usr/lib/zapret-manager /usr/libexec/rpcd/zapret-manager /usr/share/luci/menu.d/luci-app-zapret-manager.json /usr/share/rpcd/acl.d/luci-app-zapret-manager.json /www/luci-static/resources/view/zapret-manager /www/luci-static/resources/zapret-manager /tmp/zapret-manager /tmp/luci-indexcache* /tmp/luci-modulecache/* && /etc/init.d/rpcd restart && /etc/init.d/uhttpd restart +rm -rf \ + /usr/lib/zapret-manager* \ + /usr/libexec/rpcd/zapret-manager* \ + /usr/share/luci/menu.d/luci-app-zapret-manager.json \ + /usr/share/rpcd/acl.d/luci-app-zapret-manager.json \ + /www/luci-static/resources/view/zapret-manager* \ + /www/luci-static/resources/zapret-manager* \ + /etc/zapret_manager_expert_mode* \ + /tmp/zapret-manager* \ + /tmp/zm_uninstall_panel.sh \ + /tmp/luci-indexcache* \ + /tmp/luci-modulecache/* 2>/dev/null +/etc/init.d/rpcd restart >/dev/null 2>&1 +/etc/init.d/uhttpd restart >/dev/null 2>&1 echo -e "Zapret Manager ${GREEN}для ${NC}LuCI ${GREEN}удалён!${NC}\n" else echo -e "\n${MAGENTA}Устанавливаем Zapret Manager LuCI${NC}"