Skip to content

Commit

Permalink
make default db dir safe
Browse files Browse the repository at this point in the history
  • Loading branch information
yaacov committed May 7, 2017
1 parent 5d163d9 commit 781310c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/sqlite/sqlite.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func (r *Backend) Open(options url.Values) {
// get backend options
r.dbDirName = options.Get("db-dirname")
if r.dbDirName == "" {
r.dbDirName = "./server"
r.dbDirName = "./"
}

r.tenant = make(map[string]*sql.DB)
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func main() {
backendPtr := flag.String("backend", defaultBackend, "the backend to use [random, sqlite, timeout]")
apiPtr := flag.String("api", defaultAPI, "the hawkulr api to mimic [e.g. 0.8.9.Testing, 0.21.2.Final]")
tlsPtr := flag.Bool("tls", defaultTLS, "use TLS server")
optionsPtr := flag.String("options", "", "specific backend options")
optionsPtr := flag.String("options", "", "specific backend options [e.g. db-dirname (sqlite), max-size (random)]")
verbosePtr := flag.Bool("verbose", false, "more debug output")
versionPtr := flag.Bool("version", false, "version number")
flag.Parse()
Expand Down

0 comments on commit 781310c

Please sign in to comment.