FIX: Setup re-runs when SSH'ing into a successfully installed minion node #10498

This commit is contained in:
Doug Burks
2023-06-09 11:20:54 -04:00
committed by GitHub
parent 6f7de954d9
commit c12f138899

View File

@@ -672,7 +672,7 @@ if ! [[ -f $install_opt_file ]]; then
logCmd "so-soc-restart" logCmd "so-soc-restart"
title "Setting up Elastic Fleet" title "Setting up Elastic Fleet"
logCmd "salt-call state.apply elasticfleet.config" logCmd "salt-call state.apply elasticfleet.config"
logCmd "so-elastic-fleet-setup" logCmd "so-elastic-fleet-setup"
if [[ ! $is_import ]]; then if [[ ! $is_import ]]; then
title "Setting up Playbook" title "Setting up Playbook"
logCmd "so-playbook-reset" logCmd "so-playbook-reset"
@@ -694,6 +694,8 @@ if ! [[ -f $install_opt_file ]]; then
reserve_ports reserve_ports
# Set the version # Set the version
mark_version mark_version
# Disable the setup from prompting at login
disable_auto_start
info "Clearing the old manager" info "Clearing the old manager"
# Remove old manager if re-install # Remove old manager if re-install
clear_manager clear_manager