ba81359c60
add invariant script "001-node-system" to add section "system" if not exist; add invariant script "010-node-role" to add section "system" if not exist; add invariant script "010-node-role" to set role to default value (site.roles.default) if not exist; depends on new site.conf section
9 lines
190 B
Lua
9 lines
190 B
Lua
local function check_role(k, _)
|
|
local role = string.format('roles.list[%q]', k)
|
|
|
|
need_string(role)
|
|
end
|
|
|
|
need_string('roles.default', false)
|
|
need_table('roles.list', check_role, false)
|