Add ability to predefine a root api key

This commit is contained in:
Owen
2026-04-20 12:19:21 -07:00
parent 0ac97ecd5e
commit 2dad97cb6b
2 changed files with 108 additions and 0 deletions

View File

@@ -2,10 +2,12 @@ import { ensureActions } from "./ensureActions";
import { copyInConfig } from "./copyInConfig";
import { clearStaleData } from "./clearStaleData";
import { ensureSetupToken } from "./ensureSetupToken";
import { ensureRootApiKey } from "./ensureRootApiKey";
export async function runSetupFunctions() {
await copyInConfig(); // copy in the config to the db as needed
await ensureActions(); // make sure all of the actions are in the db and the roles
await clearStaleData();
await ensureSetupToken(); // ensure setup token exists for initial setup
await ensureRootApiKey();
}