mirror of https://github.com/portainer/portainer
feat(backend): check for the full database path to verify its existence (#681)
parent
3861e964f4
commit
b24825d453
|
@ -49,7 +49,7 @@ func NewStore(storePath string) (*Store, error) {
|
||||||
store.ResourceControlService.store = store
|
store.ResourceControlService.store = store
|
||||||
store.VersionService.store = store
|
store.VersionService.store = store
|
||||||
|
|
||||||
_, err := os.Stat(storePath)
|
_, err := os.Stat(storePath + "/" + databaseFileName)
|
||||||
if err != nil && os.IsNotExist(err) {
|
if err != nil && os.IsNotExist(err) {
|
||||||
store.checkForDataMigration = false
|
store.checkForDataMigration = false
|
||||||
} else if err != nil {
|
} else if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue