aboutsummaryrefslogtreecommitdiffhomepage
path: root/cli
diff options
context:
space:
mode:
Diffstat (limited to 'cli')
-rw-r--r--cli/cli.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/cli/cli.go b/cli/cli.go
index 1409229..84c0695 100644
--- a/cli/cli.go
+++ b/cli/cli.go
@@ -67,5 +67,15 @@ func Parse() {
return
}
+ // Run migrations and start the deamon.
+ if cfg.RunMigrations() {
+ store.Migrate()
+ }
+
+ // Create admin user and start the deamon.
+ if cfg.CreateAdmin() {
+ createAdmin(store)
+ }
+
daemon.Run(cfg, store)
}