Add check license to its own logic

This commit is contained in:
Mike Reeves
2021-03-15 17:41:45 -04:00
parent 72759de97f
commit 12501e0079

View File

@@ -249,13 +249,16 @@ fi
# Check if this is an airgap install
if [[ ( $is_manager || $is_import ) && $is_iso ]]; then
check_elastic_license
whiptail_airgap
if [[ "$INTERWEBS" == 'AIRGAP' ]]; then
is_airgap=true
fi
fi
if [[ $is_manager || $is_import ]]; then
check_elastic_license
fi
if ! [[ -f $install_opt_file ]]; then
if [[ $is_manager && $is_sensor ]]; then
check_requirements "standalone"