backend-sqlite3: generate db in distromatic directory

This commit is contained in:
Silvan Calarco 2013-10-02 15:10:53 +02:00
parent 69bbf2e485
commit a51e4180cc

View File

@ -461,7 +461,7 @@ generateSQLite(struct configTag *ct)
char dbname[PATH_MAX];
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);
if (sqlite3_open_v2(dbname, &db, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE, NULL)) {