From a2c5cc473ac759556be9f5756181b1d4e76f6643 Mon Sep 17 00:00:00 2001 From: sbengo Date: Mon, 4 Jun 2018 15:49:59 +0200 Subject: [PATCH] Try to fix locked db message, fix #23 --- pkg/config/database.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/config/database.go b/pkg/config/database.go index e2ab9f3..095d9f7 100644 --- a/pkg/config/database.go +++ b/pkg/config/database.go @@ -45,7 +45,7 @@ func (dbc *DatabaseCfg) InitDB() { switch dbc.Type { case "sqlite3": dbtype = "sqlite3" - datasource = dataDir + "/" + dbc.Name + ".db" + datasource = dataDir + "/" + dbc.Name + ".db?cache=shared&mode=rwc" case "mysql": dbtype = "mysql" protocol := "tcp"