mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-02-12 02:39:17 +00:00
update build.func
This commit is contained in:
parent
cb06a58b18
commit
ba9d392a88
@ -1,6 +1,7 @@
|
||||
# Copyright (c) 2021-2025 tteck
|
||||
# Author: tteck (tteckster)
|
||||
# Co-Author: MickLesk
|
||||
# Co-Author: Michel Roegl-Brunner
|
||||
# License: MIT
|
||||
# https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||
|
||||
@ -503,7 +504,13 @@ advanced_settings() {
|
||||
BRG="vmbr0"
|
||||
echo -e "${BRIDGE}${BOLD}${DGN}Bridge: ${BGN}$BRG${CL}"
|
||||
else
|
||||
if grep -q "^iface ${BRG}" /etc/network/interfaces; then
|
||||
echo -e "${BRIDGE}${BOLD}${DGN}Bridge: ${BGN}$BRG${CL}"
|
||||
else
|
||||
msg_error "Bridge does not exist in /etc/network/interfaces"
|
||||
exit
|
||||
fi
|
||||
|
||||
fi
|
||||
else
|
||||
exit_script
|
||||
@ -724,7 +731,7 @@ config_file(){
|
||||
exit
|
||||
fi
|
||||
else
|
||||
msg_error "Unknown setting for var_os, should be debian or ubuntu, was ${var_os}"
|
||||
msg_error "Unknown setting for var_os! should be debian or ubuntu, was ${var_os}"
|
||||
exit
|
||||
fi
|
||||
|
||||
@ -928,7 +935,7 @@ install_script() {
|
||||
header_info
|
||||
while true; do
|
||||
CHOICE=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "SETTINGS" --menu "Choose an option:" \
|
||||
16 50 5 \
|
||||
12 50 5 \
|
||||
"1" "Default Settings" \
|
||||
"2" "Default Settings (with verbose)" \
|
||||
"3" "Advanced Settings" \
|
||||
|
Loading…
Reference in New Issue
Block a user