diff --git a/Zapret-Manager.sh b/Zapret-Manager.sh index 3e19542..cc33341 100644 --- a/Zapret-Manager.sh +++ b/Zapret-Manager.sh @@ -546,7 +546,7 @@ DOWNLOAD_URL="https://github.com/d0mhate/-tg-ws-proxy-Manager-go/releases/downlo printf '%s\n' '#!/bin/sh /etc/rc.common' 'START=99' 'USE_PROCD=1' 'start_service() { procd_open_instance; procd_set_param command /usr/bin/tg-ws-proxy-go --host 0.0.0.0 --port 1080; procd_set_param respawn; procd_set_param stdout /dev/null; procd_set_param stderr /dev/null; procd_close_instance; }' > "$INIT_PATH" chmod +x "$INIT_PATH"; /etc/init.d/tg-ws-proxy-go enable; /etc/init.d/tg-ws-proxy-go start; if pidof tg-ws-proxy-go >/dev/null 2>&1; then echo -e "${GREEN}Сервис ${NC}TG WS Proxy Go${GREEN} запущен!${NC}" echo -e "\n${YELLOW}Настройки SOCKS5 в TG:${NC} ${NC}${LAN_IP}:1080\n"; else echo -e "\n${RED}Сервис TG WS Proxy Go не запущен!${NC}\n"; fi; } -tg_GO() { if [ "$(df -m /root 2>/dev/null | awk 'NR==2 {print $4+0}')" -lt 5 ]; then echo -e "\n${RED}Недостаточно свободного места!${NC}"; PAUSE; return 1; fi; if [ -f "$BIN_PATH" ] && [ -f "$INIT_PATH" ]; then remove_TG; PAUSE; else install_TG; PAUSE; fi; } +tg_GO() { if [ -f "$BIN_PATH" ] && [ -f "$INIT_PATH" ]; then remove_TG; PAUSE; elif [ "$(df -m /root 2>/dev/null | awk 'NR==2 {print $4+0}')" -lt 5 ]; then echo -e "\n${RED}Недостаточно свободного места!${NC}"; PAUSE; return 1; else install_TG; PAUSE; fi; } # ========================================== # Главное меню # ==========================================