From 865ba4264b236a2eb65e5686208077d626e68143 Mon Sep 17 00:00:00 2001 From: Jason Ertel Date: Wed, 14 Dec 2022 10:57:24 -0500 Subject: [PATCH] Stop backing up kratos since it now lives in /nsm. Ensure kratos is removed when re-installing. --- salt/common/tools/sbin/so-config-backup | 1 - setup/so-functions | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/common/tools/sbin/so-config-backup b/salt/common/tools/sbin/so-config-backup index fee7c4ffe..5c684e4e6 100755 --- a/salt/common/tools/sbin/so-config-backup +++ b/salt/common/tools/sbin/so-config-backup @@ -35,7 +35,6 @@ if [ ! -f $BACKUPFILE ]; then {%- endfor %} tar -rf $BACKUPFILE /etc/pki tar -rf $BACKUPFILE /etc/salt - tar -rf $BACKUPFILE /opt/so/conf/kratos fi diff --git a/setup/so-functions b/setup/so-functions index ef2690d72..19cfc241e 100755 --- a/setup/so-functions +++ b/setup/so-functions @@ -2181,6 +2181,7 @@ reinstall_init() { # Backup directories in /nsm to prevent app errors backup_dir /nsm/mysql "$date_string" backup_dir /nsm/wazuh "$date_string" + backup_dir /nsm/kratos "$date_string" # Remove the old launcher package in case the config changes remove_package launcher-final