Skip to content

Commit

Permalink
fix reboot auto mount (#1007)
Browse files Browse the repository at this point in the history
  • Loading branch information
LinkLeong authored Apr 12, 2023
1 parent 79db93e commit 34b4e15
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ func init() {
route.InitFunction()

///
// service.MountLists = make(map[string]*mountlib.MountPoint)
// configfile.Install()
//service.MountLists = make(map[string]*mountlib.MountPoint)
//configfile.Install()
}

// @title casaOS API
Expand Down
5 changes: 4 additions & 1 deletion route/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ func InitNetworkMount() {
}
connection.Directories = strings.Join(directories, ",")
service.MyService.Connections().UpdateConnection(&connection)
service.MyService.Storage().CheckAndMountAll()
}
err := service.MyService.Storage().CheckAndMountAll()
if err != nil {
logger.Error("mount storage err", zap.Any("err", err))
}
}

0 comments on commit 34b4e15

Please sign in to comment.