From 4483bfa2aa7eb7d03341ff1979e7550631163dbc Mon Sep 17 00:00:00 2001 From: Matthew Penner Date: Thu, 21 May 2020 15:13:27 -0600 Subject: [PATCH] Make mounts not get overridden when a server is updated --- server/update.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/update.go b/server/update.go index 741bcf8..30cc9fe 100644 --- a/server/update.go +++ b/server/update.go @@ -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() }