mirror of
https://github.com/portainer/portainer.git
synced 2025-07-20 13:59:40 +02:00
feat(backend): check for the full database path to verify its existence (#681)
This commit is contained in:
parent
3861e964f4
commit
b24825d453
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue