diff --git a/main.go b/main.go index e0a5122b4..b5b5f040c 100644 --- a/main.go +++ b/main.go @@ -84,7 +84,6 @@ func init() { /// // service.MountLists = make(map[string]*mountlib.MountPoint) // configfile.Install() - service.MyService.Storage().CheckAndMountAll() } // @title casaOS API diff --git a/route/init.go b/route/init.go index 441278f30..ff78e61e1 100644 --- a/route/init.go +++ b/route/init.go @@ -92,5 +92,6 @@ func InitNetworkMount() { } connection.Directories = strings.Join(directories, ",") service.MyService.Connections().UpdateConnection(&connection) + service.MyService.Storage().CheckAndMountAll() } }