mirror of
https://github.com/portainer/portainer.git
synced 2025-11-26 14:06:05 +08:00
feat(backend): check for the full database path to verify its existence (#681)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user