commit 73062e3966f44909de2c9c6113a81a6b8dae68d6
parent d07ad36b9d19f21c552bd02c4d0395812242f548
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date: Sat, 23 Mar 2024 20:40:46 -0700
Use DataDir defined in the new config.h
I added config.h along with fragments which defined DataDir for the
fragment's parent directory, but I also want to use it for the
database directory.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/timekeeper.c b/timekeeper.c
@@ -61,7 +61,7 @@ main(void)
};
struct sqlbox_cfg cfg;
struct sqlbox_src srcs[] = {
- { .fname = "/tmp/timekeeper.db", .mode = SQLBOX_SRC_RWC }
+ { .fname = DataDir "/timekeeper.db", .mode = SQLBOX_SRC_RWC }
};
enum kcgi_err (*pagefunctions[])(struct pagedata *) = {
[PageIndex] = pageindex,