Initial support for checking state of manager during setup

This commit is contained in:
William Wernert
2021-04-09 09:39:33 -04:00
parent 0ea57b4848
commit b2fcd438c2
4 changed files with 43 additions and 2 deletions

View File

@@ -574,6 +574,10 @@ if [[ $is_manager || $is_import ]]; then collect_so_allow; fi
# This block sets REDIRECTIT which is used by a function outside the below subshell
set_redirect >> $setup_log 2>&1
if [[ $is_minion ]] && ! check_manager_state; then
whiptail_manager_error || exit 1
fi
whiptail_end_settings
# From here on changes will be made.