backend-sqlite3: generate db in distromatic directory
This commit is contained in:
parent
69bbf2e485
commit
a51e4180cc
@ -461,7 +461,7 @@ generateSQLite(struct configTag *ct)
|
|||||||
char dbname[PATH_MAX];
|
char dbname[PATH_MAX];
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
snprintf(dbname, PATH_MAX, "/tmp/%s.db", ct->tag);
|
snprintf(dbname, PATH_MAX, "%s%s.db", ct->configdefaults->html_basedir, ct->tag);
|
||||||
unlink(dbname);
|
unlink(dbname);
|
||||||
|
|
||||||
if (sqlite3_open_v2(dbname, &db, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE, NULL)) {
|
if (sqlite3_open_v2(dbname, &db, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE, NULL)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user