From 40a6950c6f15d35f2d6e86e37823907b7f776317 Mon Sep 17 00:00:00 2001 From: Petro1990 Date: Fri, 13 Mar 2026 16:09:25 +0300 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=B8=D0=BA=D1=81:=20=D0=B8=D1=81=D0=BF?= =?UTF-8?q?=D1=80=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=B0=20=D0=BC=D0=B8=D0=B3?= =?UTF-8?q?=D1=80=D0=B0=D1=86=D0=B8=D1=8F=20=D0=B8=20=D1=83=D0=BB=D1=83?= =?UTF-8?q?=D1=87=D1=88=D0=B5=D0=BD=20UX=20=D0=B2=D1=8B=D0=B1=D0=BE=D1=80?= =?UTF-8?q?=D0=B0=20VPS=20(v1.0.9)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rproxy | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rproxy b/rproxy index 5d015fa..6190c69 100644 --- a/rproxy +++ b/rproxy @@ -3,7 +3,7 @@ # Публикация локальных сервисов через SSH-туннели + nginx на VPS # http://5.104.75.50:3000/Petro1990/rProxy -VERSION="1.0.8" +VERSION="1.0.9" CONF_DIR="/opt/etc/rproxy" CONF_FILE="$CONF_DIR/rproxy.conf" SERVICES_DIR="$CONF_DIR/services" @@ -95,6 +95,8 @@ migrate_config() { mkdir -p "$VPS_DIR" "$SERVICES_DIR" "$PID_DIR" if [ -f "$CONF_FILE" ] && [ ! -f "$VPS_DIR/default.conf" ]; then msg "Миграция конфигурации в новый формат..." + # Важно: загружаем текущие настройки перед миграцией + . "$CONF_FILE" # Копируем параметры в профиль default cat > "$VPS_DIR/default.conf" <