feat: sync FileBrowser config on startup

Ensures config.yaml and docker-compose.yml are regenerated on
controller startup, so new drives added while the controller was
down still get their FileBrowser sources configured.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-18 21:56:14 +01:00
parent b88c9c76e6
commit 91c12c4b8b
+3
View File
@@ -73,6 +73,9 @@ func NewServer(cfg *config.Config, stackMgr *stacks.Manager, cpuCollector *syste
logger.Printf("[INFO] Auth: no password configured — dashboard is open") logger.Printf("[INFO] Auth: no password configured — dashboard is open")
} }
// Sync FileBrowser config on startup to ensure mounts and sources are current
go s.syncFileBrowserMounts()
return s return s
} }