Revert all proxy changes on reinstall

This commit is contained in:
William Wernert
2021-03-15 12:34:13 -04:00
parent f80dfda60b
commit 6ae3a26cbe
2 changed files with 28 additions and 5 deletions

View File

@@ -205,14 +205,15 @@ if ! [[ -f $install_opt_file ]]; then
whiptail_first_menu_iso
if [[ $option == "CONFIGURENETWORK" ]]; then
collect_hostname
reset_prpxy >> $setup_log 2>&1
collect_proxy
[[ -n "$so_proxy" ]] && set_proxy >> $setup_log 2>&1
network_init_whiptail
whiptail_management_interface_setup
network_init
printf '%s\n' \
"MNIC=$MNIC" \
"HOSTNAME=$HOSTNAME" > "$net_init_file"
collect_proxy
[[ -n "$so_proxy" ]] && set_proxy >> $setup_log 2>&1
whiptail_net_setup_complete
else
true
@@ -276,9 +277,13 @@ if [[ $is_minion ]]; then
collect_mngr_hostname
fi
if ! [[ -f $install_opt_file ]] && [[ -z $is_airgap ]]; then
collect_proxy_details
[[ -n "$so_proxy" ]] && set_proxy >> $setup_log 2>&1
if ! [[ -f $install_opt_file ]]; then
reset_prpxy >> $setup_log 2>&1 # Always reset proxy when answer file doesn't exist
if [[ -z $is_airgap ]]; then
collect_proxy_details
[[ -n "$so_proxy" ]] && set_proxy >> $setup_log 2>&1
fi
fi
percentage=0