refactor for reinstall stability

This commit is contained in:
Josh Brower
2024-01-10 10:22:50 -05:00
parent bf05efa59f
commit 6ff764e6a1
3 changed files with 31 additions and 38 deletions

View File

@@ -1648,8 +1648,8 @@ reinstall_init() {
backup_dir /nsm/kratos "$date_string"
backup_dir /nsm/influxdb "$date_string"
# Remove the old launcher package in case the config changes
remove_package launcher-final
# Uninstall local Elastic Agent, if installed
logCmd "elastic-agent uninstall -f"
if [[ $is_deb ]]; then
info "Unholding previously held packages."