mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
verify setup
This commit is contained in:
@@ -585,7 +585,7 @@ if ! [[ -f $install_opt_file ]]; then
|
|||||||
fi
|
fi
|
||||||
checkin_at_boot
|
checkin_at_boot
|
||||||
set_initial_firewall_access
|
set_initial_firewall_access
|
||||||
verify_setup $setup_type
|
so-verify $setup_type
|
||||||
else
|
else
|
||||||
touch /root/accept_changes
|
touch /root/accept_changes
|
||||||
mkdir -p /opt/so
|
mkdir -p /opt/so
|
||||||
@@ -608,7 +608,7 @@ if ! [[ -f $install_opt_file ]]; then
|
|||||||
configure_minion "$minion_type"
|
configure_minion "$minion_type"
|
||||||
drop_install_options
|
drop_install_options
|
||||||
checkin_at_boot
|
checkin_at_boot
|
||||||
verify_setup $setup_type
|
so-verify $setup_type
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Need to make sure the latest install is located on the web server of the manager to check the versions and donwload the code if required
|
# Need to make sure the latest install is located on the web server of the manager to check the versions and donwload the code if required
|
||||||
|
|||||||
12
setup/so-verify
Normal file → Executable file
12
setup/so-verify
Normal file → Executable file
@@ -84,19 +84,13 @@ main() {
|
|||||||
if log_has_errors; then
|
if log_has_errors; then
|
||||||
echo "WARNING: Errors detected during setup"
|
echo "WARNING: Errors detected during setup"
|
||||||
exit_code=1
|
exit_code=1
|
||||||
fi
|
elif using_iso && cron_error_in_mail_spool; then
|
||||||
|
|
||||||
if using_iso && cron_error_in_mail_spool; then
|
|
||||||
echo "WARNING: Unexpected cron job output in mail spool"
|
echo "WARNING: Unexpected cron job output in mail spool"
|
||||||
exit_code=1
|
exit_code=1
|
||||||
fi
|
elif is_manager_node && status_failed; then
|
||||||
|
|
||||||
if is_manager_node && status_failed; then
|
|
||||||
echo "WARNING: Containers are not in a healthy state"
|
echo "WARNING: Containers are not in a healthy state"
|
||||||
exit_code=1
|
exit_code=1
|
||||||
fi
|
else
|
||||||
|
|
||||||
if [[ exit_code -eq 0 ]]; then
|
|
||||||
echo "Successfully completed setup!"
|
echo "Successfully completed setup!"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user