Skip to content

Commit 34b4e15

Browse files
authored
fix reboot auto mount (#1007)
1 parent 79db93e commit 34b4e15

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ func init() {
8282
route.InitFunction()
8383

8484
///
85-
// service.MountLists = make(map[string]*mountlib.MountPoint)
86-
// configfile.Install()
85+
//service.MountLists = make(map[string]*mountlib.MountPoint)
86+
//configfile.Install()
8787
}
8888

8989
// @title casaOS API

route/init.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ func InitNetworkMount() {
9292
}
9393
connection.Directories = strings.Join(directories, ",")
9494
service.MyService.Connections().UpdateConnection(&connection)
95-
service.MyService.Storage().CheckAndMountAll()
95+
}
96+
err := service.MyService.Storage().CheckAndMountAll()
97+
if err != nil {
98+
logger.Error("mount storage err", zap.Any("err", err))
9699
}
97100
}

0 commit comments

Comments
 (0)