fix reboot auto mount (#1007)

This commit is contained in:
link 2023-04-12 13:53:27 +08:00 committed by GitHub
parent 79db93ec02
commit 34b4e154a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

@ -82,8 +82,8 @@ func init() {
route.InitFunction() route.InitFunction()
/// ///
// service.MountLists = make(map[string]*mountlib.MountPoint) //service.MountLists = make(map[string]*mountlib.MountPoint)
// configfile.Install() //configfile.Install()
} }
// @title casaOS API // @title casaOS API

View File

@ -92,6 +92,9 @@ func InitNetworkMount() {
} }
connection.Directories = strings.Join(directories, ",") connection.Directories = strings.Join(directories, ",")
service.MyService.Connections().UpdateConnection(&connection) 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))
} }
} }