Stop backing up kratos since it now lives in /nsm. Ensure kratos is removed when re-installing.

This commit is contained in:
Jason Ertel
2022-12-14 10:57:24 -05:00
parent 6985b0ab27
commit 865ba4264b
2 changed files with 1 additions and 1 deletions

View File

@@ -35,7 +35,6 @@ if [ ! -f $BACKUPFILE ]; then
{%- endfor %} {%- endfor %}
tar -rf $BACKUPFILE /etc/pki tar -rf $BACKUPFILE /etc/pki
tar -rf $BACKUPFILE /etc/salt tar -rf $BACKUPFILE /etc/salt
tar -rf $BACKUPFILE /opt/so/conf/kratos
fi fi

View File

@@ -2181,6 +2181,7 @@ reinstall_init() {
# Backup directories in /nsm to prevent app errors # Backup directories in /nsm to prevent app errors
backup_dir /nsm/mysql "$date_string" backup_dir /nsm/mysql "$date_string"
backup_dir /nsm/wazuh "$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 the old launcher package in case the config changes
remove_package launcher-final remove_package launcher-final