✨ 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:
12
ct/ubuntu.sh
12
ct/ubuntu.sh
@@ -91,7 +91,16 @@ simple_install() {
|
|||||||
GATE=""
|
GATE=""
|
||||||
fi
|
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" \
|
DISK_SIZE=$(whiptail --backtitle "Ubuntu LXC Setup" \
|
||||||
--title "DISK" \
|
--title "DISK" \
|
||||||
--inputbox "\nVeľkosť disku v GB:" 10 58 "$var_disk" \
|
--inputbox "\nVeľkosť disku v GB:" 10 58 "$var_disk" \
|
||||||
@@ -196,6 +205,7 @@ simple_install() {
|
|||||||
if [[ -n "$GATE" ]]; then
|
if [[ -n "$GATE" ]]; then
|
||||||
echo -e "${TAB}${GATEWAY}${YW} Gateway: ${GN}${GATE}${CL}"
|
echo -e "${TAB}${GATEWAY}${YW} Gateway: ${GN}${GATE}${CL}"
|
||||||
fi
|
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}${DISKSIZE}${YW} Disk: ${GN}${DISK_SIZE}GB${CL}"
|
||||||
echo -e "${TAB}${RAMSIZE}${YW} RAM: ${GN}${RAM_SIZE}MB${CL}"
|
echo -e "${TAB}${RAMSIZE}${YW} RAM: ${GN}${RAM_SIZE}MB${CL}"
|
||||||
echo -e "${TAB}${CPUCORE}${YW} CPU: ${GN}${CORE_COUNT} jadier${CL}"
|
echo -e "${TAB}${CPUCORE}${YW} CPU: ${GN}${CORE_COUNT} jadier${CL}"
|
||||||
|
|||||||
Reference in New Issue
Block a user