Commit 31164908 authored by Nils Goroll's avatar Nils Goroll Committed by Dridi Boukelmoune

clean out vmod cache at startup

Fixes #3243
parent d0a23b2b
......@@ -787,6 +787,10 @@ main(int argc, char * const *argv)
ARGV_ERR("Cannot create working directory (%s): %s\n",
workdir, vstrerror(errno));
VJ_master(JAIL_MASTER_FILE);
AZ(system("rm -rf vmod_cache"));
VJ_master(JAIL_MASTER_LOW);
if (VJ_make_subdir("vmod_cache", "VMOD cache", NULL)) {
ARGV_ERR(
"Cannot create vmod directory (%s/vmod_cache): %s\n",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment