[fix] Also check if proxy is set before asking for ntp servers

This commit is contained in:
William Wernert
2021-03-23 09:14:34 -04:00
parent 449e0d853c
commit b3f558a1f8

View File

@@ -487,7 +487,7 @@ collect_node_ls_pipeline_worker_count() {
} }
collect_ntp_servers() { collect_ntp_servers() {
if [[ $is_airgap || "$NSMSETUP" = 'ADVANCED' || "$MANAGERADV" = 'ADVANCED' ]]; then if [[ $is_airgap || "$NSMSETUP" = 'ADVANCED' || "$MANAGERADV" = 'ADVANCED' || -n $so_proxy ]]; then
if whiptail_ntp_ask; then if whiptail_ntp_ask; then
[[ $is_airgap ]] && ntp_servers="" [[ $is_airgap ]] && ntp_servers=""
whiptail_ntp_servers "$ntp_servers" whiptail_ntp_servers "$ntp_servers"