Oops in 489e88c8: fix to the recoll-we-move-file config issue. The script needs the config for other values. Set RECOLL_CONFDIR in the environment.
This commit is contained in:
parent
489e88c87d
commit
a052278846
@ -65,7 +65,6 @@ bool runWebFilesMoverScript(RclConfig *config)
|
||||
}
|
||||
vector<string> cmdvec;
|
||||
config->pythonCmd("recoll-we-move-files.py", cmdvec);
|
||||
cmdvec.push_back(downloadsdir);
|
||||
|
||||
/* Arrange to not actually run the script if the directory did not change */
|
||||
static time_t dirmtime;
|
||||
@ -85,6 +84,7 @@ bool runWebFilesMoverScript(RclConfig *config)
|
||||
are created during the run. */
|
||||
dirmtime = ndirmtime;
|
||||
ExecCmd cmd;
|
||||
cmd.putenv("RECOLL_CONFDIR", config->getConfDir());
|
||||
int status = cmd.doexec1(cmdvec);
|
||||
return status == 0;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user