Zapret Manager for LuCI
Refactor removal command for clarity and add error suppression.
This commit is contained in:
1 parent
921ac517cc
commit
4085a8fd71
1 file changed
+14
-1
+14
-1
@@ -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}"
|
||||
|
||||
Reference in new issue
Block a user