Improve tgws removal process in Zapret-Manager.sh
Enhanced cleanup process for tgws by removing additional related files and stopping processes.
This commit is contained in:
1 parent
1c1b75b3c3
commit
409e97294f
1 file changed
+5
-1
+5
-1
@@ -1177,7 +1177,11 @@ remove_TGWS() {
|
|||||||
/etc/init.d/tgws stop >/dev/null 2>&1
|
/etc/init.d/tgws stop >/dev/null 2>&1
|
||||||
|
|
||||||
$DELETE tgws >/dev/null 2>&1
|
$DELETE tgws >/dev/null 2>&1
|
||||||
rm -rf /etc/tgws /etc/config/tgws
|
|
||||||
|
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*
|
||||||
|
nft delete table inet stgws >/dev/null 2>&1
|
||||||
|
nft delete table inet tgws >/dev/null 2>&1
|
||||||
|
|
||||||
echo -e "sTGWS ${GREEN}удалён!${NC}\n"
|
echo -e "sTGWS ${GREEN}удалён!${NC}\n"
|
||||||
PAUSE
|
PAUSE
|
||||||
|
|||||||
Reference in new issue
Block a user