fix(scanner): pass datafolder and cachefolder to scanner subprocess
Fix #3831 Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
@@ -33,6 +33,8 @@ func (s *scannerExternal) scanAll(ctx context.Context, fullScan bool, progress c
|
|||||||
cmd := exec.CommandContext(ctx, exe, "scan",
|
cmd := exec.CommandContext(ctx, exe, "scan",
|
||||||
"--nobanner", "--subprocess",
|
"--nobanner", "--subprocess",
|
||||||
"--configfile", conf.Server.ConfigFile,
|
"--configfile", conf.Server.ConfigFile,
|
||||||
|
"--datafolder", conf.Server.DataFolder,
|
||||||
|
"--cachefolder", conf.Server.CacheFolder,
|
||||||
If(fullScan, "--full", ""))
|
If(fullScan, "--full", ""))
|
||||||
|
|
||||||
in, out := io.Pipe()
|
in, out := io.Pipe()
|
||||||
|
|||||||
Reference in New Issue
Block a user