fix reboot auto mount

This commit is contained in:
LinkLeong 2023-04-12 05:06:04 +01:00
parent 79db93ec02
commit 81a5992962
2 changed files with 6 additions and 3 deletions

View File

@ -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

View File

@ -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))
}
}