Create databases on profile init

Ensures that the databases exist for commands like `rad ls`, even
before the node is started for the first time.
This commit is contained in:
cloudhead 2024-01-31 13:16:09 +01:00
parent 5333f8217a
commit 1af505c5c3
No known key found for this signature in database
1 changed files with 3 additions and 0 deletions

View File

@ -216,6 +216,9 @@ impl Profile {
key: public_key,
},
)?;
// Create DBs.
home.policies_mut()?;
home.database_mut()?;
transport::local::register(storage.clone());