aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorBernhard Feichtinger <43303168+BieHDC@users.noreply.github.com>2023-01-20 13:13:36 +0100
committerGitHub <noreply@github.com>2023-01-20 13:13:36 +0100
commita2b486091218e761adc0a00ce19ed4b600e489a2 (patch)
treec5eb7367503797c91a4890dc2e3c98cf6480f32b /cmd
parentce2bfc3f2e507a012044906af7f25c9dc52873d7 (diff)
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>`
Diffstat (limited to 'cmd')
-rw-r--r--cmd/generate-config/main.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/generate-config/main.go b/cmd/generate-config/main.go
index 33b18c47..5f75f5e4 100644
--- a/cmd/generate-config/main.go
+++ b/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",