move Kratos DB to /nsm

This commit is contained in:
Jason Ertel
2022-12-14 14:22:55 -05:00
parent c79457b41d
commit 9885f418fa
4 changed files with 16 additions and 10 deletions

View File

@@ -65,7 +65,7 @@ add_socore_user_manager() {
}
add_web_user() {
wait_for_file /opt/so/conf/kratos/db/db.sqlite 30 5
wait_for_file /nsm/kratos/db/db.sqlite 30 5
{
info "Attempting to add administrator user for web interface...";
export SKIP_STATE_APPLY=true
@@ -1771,8 +1771,9 @@ reinstall_init() {
# If the elastic license has been accepted restore the state file
restore_file "/opt/so_old_$date_string/state/yeselastic.txt" "/opt/so/state/"
# Backup directories in /nsm to prevent app errors
# Backup (and erase) directories in /nsm to prevent app errors
backup_dir /nsm/mysql "$date_string"
backup_dir /nsm/kratos "$date_string"
# Remove the old launcher package in case the config changes
remove_package launcher-final