feat(backend): check for the full database path to verify its existence (#681)

pull/682/head
Anthony Lapenna 2017-03-16 11:23:01 +01:00 committed by GitHub
parent 3861e964f4
commit b24825d453
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ func NewStore(storePath string) (*Store, error) {
store.ResourceControlService.store = store
store.VersionService.store = store
_, err := os.Stat(storePath)
_, err := os.Stat(storePath + "/" + databaseFileName)
if err != nil && os.IsNotExist(err) {
store.checkForDataMigration = false
} else if err != nil {