Database file is in /var/db/builder-web/
This commit is contained in:
parent
484658d23a
commit
af505853e6
2 changed files with 3 additions and 3 deletions
|
@ -177,13 +177,13 @@ let help man_format cmds = function
|
||||||
let dbpath =
|
let dbpath =
|
||||||
let doc = "sqlite3 database path" in
|
let doc = "sqlite3 database path" in
|
||||||
Cmdliner.Arg.(value &
|
Cmdliner.Arg.(value &
|
||||||
opt non_dir_file "builder.sqlite3" &
|
opt non_dir_file "/var/db/builder-web/builder.sqlite3" &
|
||||||
info ~doc ["dbpath"])
|
info ~doc ["dbpath"])
|
||||||
|
|
||||||
let dbpath_new =
|
let dbpath_new =
|
||||||
let doc = "sqlite3 database path" in
|
let doc = "sqlite3 database path" in
|
||||||
Cmdliner.Arg.(value &
|
Cmdliner.Arg.(value &
|
||||||
opt string "builder.sqlite3" &
|
opt string "/var/db/builder-web/builder.sqlite3" &
|
||||||
info ~doc ["dbpath"])
|
info ~doc ["dbpath"])
|
||||||
|
|
||||||
let username =
|
let username =
|
||||||
|
|
|
@ -9,5 +9,5 @@ let app t =
|
||||||
let () =
|
let () =
|
||||||
let () = Mirage_crypto_rng_unix.initialize () in
|
let () = Mirage_crypto_rng_unix.initialize () in
|
||||||
let datadir = Fpath.v "/var/db/builder-web/" in
|
let datadir = Fpath.v "/var/db/builder-web/" in
|
||||||
let t = Result.get_ok (Builder_web.init "builder.sqlite3" datadir) in
|
let t = Result.get_ok (Builder_web.init "/var/db/builder-web/builder.sqlite3" datadir) in
|
||||||
App.run_command (app t)
|
App.run_command (app t)
|
||||||
|
|
Loading…
Reference in a new issue