Skip to content

Commit

Permalink
RESTORE: VC_NETWORK_PUBLIC_ENABLED
Browse files Browse the repository at this point in the history
  • Loading branch information
Fred78290 committed Sep 28, 2024
1 parent 325bf02 commit b1e6961
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions bin/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ export VC_NETWORK_PRIVATE_TYPE=
export VC_NETWORK_PRIVATE="bridged100"
export VC_NETWORK_PUBLIC_TYPE=
export VC_NETWORK_PUBLIC="en0"
export VC_NETWORK_PUBLIC_ENABLED=true
export VERBOSE=NO
export VMREST_FOLDER=
export VMREST_INSECURE=true
Expand Down
6 changes: 6 additions & 0 deletions bin/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1144,6 +1144,12 @@ function prepare_environment() {
VC_NETWORK_PUBLIC=""
fi

if [ -n ${VC_NETWORK_PUBLIC} ]; then
VC_NETWORK_PUBLIC_ENABLED=true
else
VC_NETWORK_PUBLIC_ENABLED=false
fi

if [ "${UPGRADE_CLUSTER}" == "YES" ] && [ "${DELETE_CLUSTER}" = "YES" ]; then
echo_red_bold "Can't upgrade deleted cluster, exit"
exit
Expand Down

0 comments on commit b1e6961

Please sign in to comment.