[feat] Add check for hardware requirements

This commit is contained in:
William Wernert
2020-05-04 15:59:07 -04:00
parent d9dff52104
commit 6785b9e4d2
4 changed files with 61 additions and 2 deletions

View File

@@ -57,8 +57,6 @@ fi
whiptail_install_type
whiptail_patch_schedule
if [ "$install_type" = 'EVAL' ]; then
is_node=true
is_master=true
@@ -89,6 +87,16 @@ elif [ "$install_type" = 'HELIXSENSOR' ]; then
is_helix=true
fi
if [[ $is_eval ]]; then
check_requirements "eval"
elif [[ $is_distmaster || $is_minion ]]; then
check_requirements "dist"
elif [[ $is_sensor && ! $is_eval ]]; then
check_requirements "dist" "sensor"
fi
whiptail_patch_schedule
case "$setup_type" in
'iso')
whiptail_set_hostname