Skip to content

CasaOS - A simple, easy-to-use, elegant open-source Personal Cloud system.

fix reboot auto mount (#1007)

link34b4e154a1f6
diff --git a/main.go b/main.go
index b5b5f04..34bd121 100644
--- a/main.go
+++ b/main.go
@@ -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
diff --git a/route/init.go b/route/init.go
index ff78e61..3e3c640 100644
--- a/route/init.go
+++ b/route/init.go
@@ -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))
}
}