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