refactor for reinstall stability

This commit is contained in:
Josh Brower committed 2024-01-10 10:22:50 -05:00
1 parent bf05efa59f
commit 6ff764e6a1
3 files changed
+31 -38

No files matched your search

+2 -2
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."