From e24f97b12d028f13065df6942052f9c726c40658 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BD=D0=B8=D0=B8=D0=BB=20=D0=93=D1=80=D0=B0?= =?UTF-8?q?=D0=B1=D0=B0=D1=80=D1=8C?= Date: Fri, 22 May 2026 11:56:05 +1000 Subject: [PATCH] fix: prompt for sudo password upfront to ensure smooth installation process --- install.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/install.sh b/install.sh index 05d913c..635c416 100644 --- a/install.sh +++ b/install.sh @@ -330,6 +330,18 @@ run_setup() { main() { print_banner + + # Ask for the sudo password upfront before anything else runs. + # This way all later sudo calls work silently without interrupting the flow. + # Skip if we are already root - no password needed in that case. + # Запрашиваем пароль sudo в самом начале, до запуска всего остального. + # Тогда все последующие sudo-вызовы работают молча, не прерывая процесс. + # Пропускаем если уже запущены от root - пароль в этом случае не нужен. + if [ "$(id -u)" -ne 0 ]; then + log_info "Some steps require administrator privileges. Please enter your password:" + sudo -v || log_error "sudo authentication failed" + fi + detect_os check_git check_docker