Fix vault init order

This commit is contained in:
crschnick 2024-02-26 13:35:26 +00:00
parent 8d474c2640
commit d75cffd3a3

View file

@ -51,6 +51,9 @@ public class StandardStorage extends DataStorage {
ErrorEvent.fromThrowable(e).terminal(true).build().handle();
}
this.gitStorageHandler.init(dir);
this.gitStorageHandler.beforeStorageLoad();
try {
initSystemInfo();
} catch (Exception e) {
@ -63,13 +66,9 @@ public class StandardStorage extends DataStorage {
ErrorEvent.fromThrowable(e).terminal(true).build().handle();
}
this.gitStorageHandler.init(dir);
this.gitStorageHandler.beforeStorageLoad();
var storesDir = getStoresDir();
var categoriesDir = getCategoriesDir();
var dataDir = getDataDir();
try {
FileUtils.forceMkdir(storesDir.toFile());
FileUtils.forceMkdir(categoriesDir.toFile());