From 1df17dc915af501898b9f30f8224a09626cebdcd Mon Sep 17 00:00:00 2001 From: martin Date: Mon, 16 Mar 2026 16:48:47 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20DNS=20nastavenie=20pri=20in?= =?UTF-8?q?=C5=A1tal=C3=A1cii=20(default=208.8.8.8=201.1.1.1)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Nový krok v inštalačnom wizarde — DNS servery s predvolenou hodnotou. Zobrazuje sa aj v súhrne pred potvrdením. Co-Authored-By: Claude Opus 4.6 (1M context) --- ct/ubuntu.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/ct/ubuntu.sh b/ct/ubuntu.sh index f77d313..85c083a 100644 --- a/ct/ubuntu.sh +++ b/ct/ubuntu.sh @@ -91,7 +91,16 @@ simple_install() { GATE="" fi - # --- KROK 3: Resources --- + # --- KROK 3: DNS --- + local dns_input + dns_input=$(whiptail --backtitle "Ubuntu LXC Setup" \ + --title "DNS SERVERY" \ + --inputbox "\nZadaj DNS servery (oddelené medzerou):" 10 58 "8.8.8.8 1.1.1.1" \ + 3>&1 1>&2 2>&3) || exit_script + [[ -z "$dns_input" ]] && dns_input="8.8.8.8 1.1.1.1" + NS="-nameserver=${dns_input}" + + # --- KROK 4: Resources --- DISK_SIZE=$(whiptail --backtitle "Ubuntu LXC Setup" \ --title "DISK" \ --inputbox "\nVeľkosť disku v GB:" 10 58 "$var_disk" \ @@ -196,6 +205,7 @@ simple_install() { if [[ -n "$GATE" ]]; then echo -e "${TAB}${GATEWAY}${YW} Gateway: ${GN}${GATE}${CL}" fi + echo -e "${TAB}${INFO}${YW} DNS: ${GN}${dns_input}${CL}" echo -e "${TAB}${DISKSIZE}${YW} Disk: ${GN}${DISK_SIZE}GB${CL}" echo -e "${TAB}${RAMSIZE}${YW} RAM: ${GN}${RAM_SIZE}MB${CL}" echo -e "${TAB}${CPUCORE}${YW} CPU: ${GN}${CORE_COUNT} jadier${CL}"