feat: DNS nastavenie pri inštalácii (default 8.8.8.8 1.1.1.1)

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) <noreply@anthropic.com>
This commit is contained in:
martin
2026-03-16 16:48:47 +01:00
parent d5d01a3ddb
commit 1df17dc915

View File

@@ -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}"