From dfc7ed56fe3a1458007b9232f606b78b8f6dca5d Mon Sep 17 00:00:00 2001 From: StressOzz <131419324+StressOzz@users.noreply.github.com> Date: Sat, 12 Sep 2026 01:15:51 +0500 Subject: [PATCH] Update Zapret-Manager.sh --- Zapret-Manager.sh | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/Zapret-Manager.sh b/Zapret-Manager.sh index bf6425e..1927150 100644 --- a/Zapret-Manager.sh +++ b/Zapret-Manager.sh @@ -1173,15 +1173,25 @@ install_update_TGWS() { remove_TGWS() { echo -e "\n${MAGENTA}Удаляем sTGWS${NC}\n${CYAN}Удаляем пакет${NC}" - /etc/init.d/tgws disable >/dev/null 2>&1 - /etc/init.d/tgws stop >/dev/null 2>&1 +/etc/init.d/tgws disable >/dev/null 2>&1 +/etc/init.d/tgws stop >/dev/null 2>&1 $DELETE tgws >/dev/null 2>&1 - -killall tgws 2>/dev/null; killall stgws 2>/dev/null -rm -rf /etc/*tgws* /var/lib/*tgws* /var/lock/*tgws*.lock /etc/rc.d/*tgws* /etc/init.d/*tgws* /usr/sbin/*tgws* + +/usr/sbin/stgws apply --spec /dev/null --state-dir /var/lib/stgws >/dev/null 2>&1 +/usr/sbin/tgws apply --spec /dev/null --state-dir /var/lib/tgws >/dev/null 2>&1 +killall tgws >/dev/null 2>&1 +killall stgws >/dev/null 2>&1 nft delete table inet stgws >/dev/null 2>&1 nft delete table inet tgws >/dev/null 2>&1 +rm -rf /etc/*tgws* +rm -rf /var/lib/*tgws* +rm -rf /var/lock/*tgws* +rm -rf /etc/rc.d/*tgws* +rm -rf /etc/init.d/*tgws* +rm -rf /usr/sbin/*tgws* +rm -rf /usr/bin/*tgws* +rm -rf /etc/config/*tgws* echo -e "sTGWS ${GREEN}удалён!${NC}\n" PAUSE