Make mounts not get overridden when a server is updated

This commit is contained in:
Matthew Penner 2020-05-21 15:13:27 -06:00
parent 662eb17241
commit 4483bfa2aa

View File

@ -64,6 +64,10 @@ func (s *Server) UpdateDataStructure(data []byte, background bool) error {
s.Allocations.Mappings = src.Allocations.Mappings
}
if src.Mounts != nil && len(src.Mounts) > 0 {
s.Mounts = src.Mounts
}
if background {
s.runBackgroundActions()
}