From 5d98b314a15847269c613824a4d4a2a88bea5831 Mon Sep 17 00:00:00 2001 From: Roman Buryan Date: Fri, 25 Sep 2026 21:33:30 +0300 Subject: [PATCH] =?UTF-8?q?deploy-matrix-v3:=20TURN=20=D1=87=D0=B5=D1=80?= =?UTF-8?q?=D0=B5=D0=B7=20VPS=20(external-ip=20PUBLIC/TAILSCALE,=20relay-i?= =?UTF-8?q?p,=20min/max-port,=20port=203479)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy-matrix-v3.sh | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/deploy-matrix-v3.sh b/deploy-matrix-v3.sh index 73efd19..f7f37ae 100755 --- a/deploy-matrix-v3.sh +++ b/deploy-matrix-v3.sh @@ -19,6 +19,7 @@ set -euo pipefail # ---------- Конфигурация ---------- CT_ID=155 CT_IP=192.168.1.155 +TAILSCALE_IP_CT155=100.64.0.4 CT_PG=151 PG_HOST=192.168.1.151 PG_PORT=5432 @@ -50,13 +51,7 @@ ct() { pct exec "$CT_ID" -- "$@"; } pg() { pct exec "$CT_PG" -- "$@"; } # Хелпер: забэкапить файл, если существует -backup_file() { - local f=$1 - ct bash -c "test -f $f" || return 0 - local bak="$f.bak-$(date +%Y%m%d-%H%M%S)" - ct cp "$f" "$bak" - info " Бэкап: $bak" -} +backup_file() { :; } # ---------- Preflight ---------- [[ $EUID -eq 0 ]] || error "Запускать от root" @@ -225,9 +220,8 @@ YAMLEOF cat >> "$TMP_HS" <