Fix oversight in cmd/generate-config
The -dir argument was ignored for media_api->base_path.
<43303168+BieHDC@users.noreply.github.com>`
MODIFY
cmd/generate-config/main.go
cmd/generate-config/main.go
@@ -54,6 +54,9 @@ func main() {
} else {
cfg.Global.DatabaseOptions.ConnectionString = uri
}
+ cfg.MediaAPI.BasePath = config.Path(filepath.Join(*dirPath, "media"))
+ cfg.Global.JetStream.StoragePath = config.Path(*dirPath)
+ cfg.SyncAPI.Fulltext.IndexPath = config.Path(filepath.Join(*dirPath, "searchindex"))
cfg.Logging = []config.LogrusHook{
{
Type: "file",

Fix oversight in cmd/generate-config (#2946)

The -dir argument was ignored for media_api->base_path.
Signed-off-by: `Bernhard Feichtinger
<43303168+BieHDC@users.noreply.github.com>`