Signed-off-by: Gordon Hecker <gh@emlix.com>
if type(config.cache) ~= "table" or type(config.cache.path) ~= "string" then
return false, e:append("invalid cache configuration: config.cache.path")
end
- -- replace %u by the username, %l by the project location
local replace = { u=e2lib.username }
local cache_path = e2lib.format_replace(config.cache.path, replace)
local cache_url = string.format("file://%s", cache_path)
scp = { name="scp", flags="-o BatchMode=true" },
},
cache = {
- -- replacements:
- -- %u: username
- -- %l: project-location
- -- to keep the projects independent use
- --path = "/var/tmp/e2cache/%u/%l",
- -- to maintain one cache for all projects use
+ -- replacements: %u: username
path = "/var/tmp/e2cache-%u",
},
servers = {