Files
amnezia_web-PRO/09.3.3 Fix AWG auto profiles 21.06.md
2026-10-23 01:44:20 +03:00

23 lines
1.5 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 09.3.3 Fix AWG auto profiles 21.06
_Старая заметка из Notes (июнь 2026), перенесена 23.10.2026. Оригинал: Архив/Старые заметки Notes 20261023._
Repo: https://github.com/andrey271192/amnezia_web-PRO
Commit: cbc20a1 — fix: auto-detect awg profiles on install
Что исправлено
Переустановка из GitHub работает для /opt/amnezia-admin без .git.
Установщик сохраняет текущий порт панели.
Установщик сохраняет текущий Docker volume /data.
Перед заменой /opt/amnezia-admin создаётся backup папки.
Если найден один контейнер amnezia-awg*, он становится AWG_CONTAINER.
Если найдено 2+ контейнера amnezia-awg*, AWG_PROFILES создаётся автоматически и сохраняется в /root/amnezia-admin.awg-profiles.json.
Dockerfile использует npm ci по package-lock.json.
Что сказать пользователю
curl -fsSL https://raw.githubusercontent.com/andrey271192/amnezia_web-PRO/main/scripts/install.sh | sudo env SKIP_LANDING=1 bash
После установки: обновить страницу Ctrl+F5. AWG контейнеры не удаляются и не пересоздаются.
Проверено
bash -n scripts/install.sh
bash -n scripts/uninstall.sh
node --check server.js
npm audit --audit-level=moderate