Skip to content
Snippets Groups Projects
Commit e813b29c authored by Karsten Böddeker's avatar Karsten Böddeker
Browse files

ffho-site-generate: also substitute the groupe name per default

parent 5183706f
No related branches found
No related tags found
No related merge requests found
......@@ -16,18 +16,22 @@ if site_code ~= currentsite then
local configured = false
for _, site in pairs(sites) do
if site.site_code == currentsite then
local subst = {}
subst['%%SN'] = site.site_name
subst['%%SC'] = site.site_code
if site.subst then
config = tools.replace_patterns(config, site.subst)
end
if (site.site_select or {}).group and groups and groups[site.site_select.group] then
group = groups[site.site_select.group]
subst['%%GN'] = site.site_select.group
if group.subst then
config = tools.replace_patterns(config, group.subst)
end
end
local subst = {}
subst['%%SN'] = site.site_name
subst['%%SC'] = site.site_code
config = tools.replace_patterns(config, subst)
local file = '/lib/gluon/site.json'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment