version1 Панель работает, исправлены ошибки в mita-ctl

This commit is contained in:
2026-06-19 23:43:12 +03:00
parent 39c1fcf438
commit ee439187e2
3 changed files with 42 additions and 8 deletions
+5 -3
View File
@@ -120,15 +120,17 @@ fi
# =============================================================================
section "Установка зависимостей"
apt-get update -qq
apt-get update -qq || { warn "apt-get update завершился с ошибкой, продолжаем..."; true; }
DEBIAN_FRONTEND=noninteractive apt-get install -y -qq \
curl wget jq cron \
ca-certificates gnupg lsb-release \
iptables ipset ufw iptables-persistent \
iptables ufw \
fail2ban openssl \
net-tools \
python3 python3-yaml \
2>/dev/null
|| error "Ошибка установки зависимостей. Запустите вручную: apt-get install -y curl wget jq cron iptables ufw fail2ban python3 python3-yaml"
# ipset и iptables-persistent — опциональные, не прерываем при ошибке
DEBIAN_FRONTEND=noninteractive apt-get install -y -qq ipset iptables-persistent 2>/dev/null || true
ok "Базовые пакеты установлены (включая fail2ban, ufw, ipset, iptables-persistent, python3-yaml)"
# =============================================================================