mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-02-07 08:19:17 +00:00
update build.func
This commit is contained in:
parent
ba9d392a88
commit
d1ff5356ad
@ -504,13 +504,7 @@ advanced_settings() {
|
|||||||
BRG="vmbr0"
|
BRG="vmbr0"
|
||||||
echo -e "${BRIDGE}${BOLD}${DGN}Bridge: ${BGN}$BRG${CL}"
|
echo -e "${BRIDGE}${BOLD}${DGN}Bridge: ${BGN}$BRG${CL}"
|
||||||
else
|
else
|
||||||
if grep -q "^iface ${BRG}" /etc/network/interfaces; then
|
echo -e "${BRIDGE}${BOLD}${DGN}Bridge: ${BGN}$BRG${CL}"
|
||||||
echo -e "${BRIDGE}${BOLD}${DGN}Bridge: ${BGN}$BRG${CL}"
|
|
||||||
else
|
|
||||||
msg_error "Bridge does not exist in /etc/network/interfaces"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
exit_script
|
exit_script
|
||||||
@ -792,7 +786,12 @@ config_file(){
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ! -z "$BRG" ]]; then
|
if [[ ! -z "$BRG" ]]; then
|
||||||
echo -e "${BRIDGE}${BOLD}${DGN}Bridge: ${BGN}$BRG${CL}"
|
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
|
||||||
else
|
else
|
||||||
msg_error "Bridge cannot be empty"
|
msg_error "Bridge cannot be empty"
|
||||||
exit
|
exit
|
||||||
|
Loading…
Reference in New Issue
Block a user