[fix] Don't set is_cloud in a subshell

This commit is contained in:
William Wernert
2021-03-18 13:09:46 -04:00
parent 1f85506fb1
commit 27ff823bc0

View File

@@ -361,10 +361,11 @@ percentage=0
echo "Could not install packages required for setup, exiting now." >> "$setup_log" 2>&1
kill -SIGUSR1 "$setup_proc"; exit 1
fi
set_progress_str 99 "Detecting whether setup is running in the cloud." nolog
detect_cloud
} | progress '...'
echo "Checking if setup is running in the cloud..."
detect_cloud
short_name=$(echo "$HOSTNAME" | awk -F. '{print $1}')
MINION_ID=$(echo "${short_name}_${install_type}" | tr '[:upper:]' '[:lower:]')