Merge branch 'main' of https://github.com/community-scripts/ProxmoxVED
This commit is contained in:
commit
94fe1a784f
@ -713,14 +713,16 @@ advanced_settings() {
|
|||||||
if (whiptail --backtitle "[dev] Proxmox VE Helper Scripts" --defaultno --title "IPv6" --yesno "Disable IPv6?" 10 58); then
|
if (whiptail --backtitle "[dev] Proxmox VE Helper Scripts" --defaultno --title "IPv6" --yesno "Disable IPv6?" 10 58); then
|
||||||
DISABLEIP6="yes"
|
DISABLEIP6="yes"
|
||||||
else
|
else
|
||||||
|
|
||||||
IPv6="auto"
|
IPv6="auto"
|
||||||
DISABLEIP6="no"
|
DISABLEIP6="no"
|
||||||
if IP6=$(whiptail --backtitle "[dev] Proxmox VE Helper Scripts" --title "IPv6" --inputbox "Enter IPv6 Address (Default SLAAC)" 10 58); then
|
|
||||||
|
if IP6=$(whiptail --backtitle "[dev] Proxmox VE Helper Scripts" --inputbox "Set IPv6" 8 58 --title "Set IPv6" 3>&1 1>&2 2>&3); then
|
||||||
IPv6=$IP6
|
IPv6=$IP6
|
||||||
echo -e "${NETWORK}${BOLD}${DGN}IPv6 Address: ${BGN}$IPv6${CL}"
|
echo -e "${NETWORK}${BOLD}${DGN}IPv6 Address: ${BGN}$IPv6${CL}"
|
||||||
if IP6GW=$(whiptail --backtitle "[dev] Proxmox VE Helper Scripts" --inputbox "Enter IPv6 Gateway" 8 58 --title "IPv6 Gateway" 3>&1 1>&2 2>&3); then
|
if IP6GW=$(whiptail --backtitle "[dev] Proxmox VE Helper Scripts" --inputbox "Enter ipv6 Gateway" 8 58 --title "Enter ipv6 Gateway" 3>&1 1>&2 2>&3); then
|
||||||
if [ -z $IP6GW ]; then
|
if [ -z $IP6GW ]; then
|
||||||
IP6GW="Default"
|
IPv6GW=""
|
||||||
echo -e "${GATEWAY}${BOLD}${DGN}IPv6 Gateway: ${BGN}$IP6GW${CL}"
|
echo -e "${GATEWAY}${BOLD}${DGN}IPv6 Gateway: ${BGN}$IP6GW${CL}"
|
||||||
else
|
else
|
||||||
IPv6GW=",gw6=$IP6GW"
|
IPv6GW=",gw6=$IP6GW"
|
||||||
@ -1137,7 +1139,7 @@ build_container() {
|
|||||||
-unprivileged $CT_TYPE
|
-unprivileged $CT_TYPE
|
||||||
$PW
|
$PW
|
||||||
"
|
"
|
||||||
else
|
elif [[ DISABLEIP6 == "no" ]]; then
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
|
Loading…
x
Reference in New Issue
Block a user