From ddedf533a14dfeb0577b0a5a5b8164ad67ffec1d Mon Sep 17 00:00:00 2001 From: Divarion-D Date: Tue, 7 Apr 2026 19:49:19 +0300 Subject: [PATCH] =?UTF-8?q?chore:=20auto=5Finstall.sh=20=E2=80=94=20switch?= =?UTF-8?q?=20from=20install=20to=20test=5Finstaller?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/test-install/auto_install.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/tools/test-install/auto_install.sh b/tools/test-install/auto_install.sh index 55932c8..5940f08 100644 --- a/tools/test-install/auto_install.sh +++ b/tools/test-install/auto_install.sh @@ -16,8 +16,8 @@ echo "==> Распаковка XC_VM.zip..." unzip -o XC_VM.zip # Проверяем что инсталлятор и архив на месте -if [[ ! -f install ]]; then - echo "ERROR: install script not found after unzip" +if [[ ! -f test_installer ]]; then + echo "ERROR: test_installer script not found after unzip" exit 1 fi if [[ ! -f xc_vm.tar.gz ]]; then @@ -26,13 +26,14 @@ if [[ ! -f xc_vm.tar.gz ]]; then fi echo "==> Запуск инсталлятора..." -# Ответы на интерактивные вопросы: -# 1) "Continue and overwrite? (Y / N)" — Y (на случай если /home/xc_vm/ существует) + +# Ответы на интерактивные вопросы (чистая установка, /home/xc_vm/ не существует): +# 1) "MariaDB root password (or press Enter to generate):" — пустая строка (авто-генерация) # 2) "HTTP port (default 80):" — пустая строка (default 80) # 3) "HTTPS port (default 443):" — пустая строка (default 443) -# 4) "Overwrite sysctl configuration? (Y / N):" — N (sysctl нельзя менять в контейнере) +# 4) "Overwrite sysctl configuration? Recommended! (Y / N):" — Y -printf 'Y\n\n\nN\n' | python3 install 2>&1 | tee /var/log/xcvm_install.log +printf '\n\n\nY\n' | python3 test_installer 2>&1 | tee /var/log/xcvm_install.log EXIT_CODE=${PIPESTATUS[1]} echo ""