From ac5de66bce66ef87a4703e3e3b8e062604c0d0bd Mon Sep 17 00:00:00 2001 From: hosh1 Date: Mon, 11 Aug 2025 00:49:28 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index c1991e7..d97c0f2 100644 --- a/install.sh +++ b/install.sh @@ -168,7 +168,7 @@ check_existing_installation() { if [ "$FORCE_REINSTALL" = false ]; then echo "⚠️ Система уже настроена и работает." echo "" - read -p "Выполнить полную переустановку? (y/n): " choice + read -p "Выполнить полную переустановку? [y/n]: " choice case $choice in [Yy]|[Yy][Ee][Ss]) @@ -304,7 +304,7 @@ if [ "$SKIP_PACKAGE_INSTALL" = false ]; then if [ "$DISTRO_FAMILY" = "debian" ]; then apt remove -y nginx nginx-common nginx-core >/dev/null 2>&1 || true apt remove -y php7.* php8.0* php8.1* php8.2* libapache2-mod-php7.* libapache2-mod-php8.0* libapache2-mod-php8.1* libapache2-mod-php8.2* >/dev/null 2>&1 || true - apt remove --purge -y mariadb* mysql* >/dev/null 2>&1 || true + env DEBIAN_FRONTEND=noninteractive apt remove --purge -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" mariadb* mysql* /dev/null 2>&1 || true apt autoremove -y >/dev/null 2>&1 || true rm -rf /var/lib/mysql* /etc/mysql* /var/log/mysql* 2>/dev/null || true elif [ "$DISTRO_FAMILY" = "rhel" ]; then