From ee0f8ceaf366d019b3da863667aed36ee71b41b2 Mon Sep 17 00:00:00 2001 From: Petro1990 Date: Fri, 13 Mar 2026 16:11:49 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B0=D1=80=D1=85=D0=B8=D1=82=D0=B5=D0=BA?= =?UTF-8?q?=D1=82=D1=83=D1=80=D0=B0:=20=D0=B8=D1=81=D0=BF=D1=80=D0=B0?= =?UTF-8?q?=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BC=D0=B8=D0=B3=D1=80?= =?UTF-8?q?=D0=B0=D1=86=D0=B8=D0=B8=20=D0=B8=20=D1=83=D0=BB=D1=83=D1=87?= =?UTF-8?q?=D1=88=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=B8=D0=BD=D1=82=D0=B5=D1=80?= =?UTF-8?q?=D1=84=D0=B5=D0=B9=D1=81=D0=B0=20VPS=20(v1.1.0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rproxy | 35 +++++++++++++++++++++++------------ 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/rproxy b/rproxy index 6190c69..d46a5a6 100644 --- a/rproxy +++ b/rproxy @@ -3,7 +3,7 @@ # Публикация локальных сервисов через SSH-туннели + nginx на VPS # http://5.104.75.50:3000/Petro1990/rProxy -VERSION="1.0.9" +VERSION="1.1.0" CONF_DIR="/opt/etc/rproxy" CONF_FILE="$CONF_DIR/rproxy.conf" SERVICES_DIR="$CONF_DIR/services" @@ -93,24 +93,33 @@ load_vps() { 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" < "$VPS_DIR/default.conf" < "$CONF_FILE.tmp" < "$CONF_FILE.tmp" <