scripts/check_site_lib.lua: introduce in_site() and in_domain() helpers

These helpers are no-ops for now, until the actual multi-domain support is
added.
This commit is contained in:
Matthias Schiffer 2018-01-19 03:30:50 +01:00
parent b520bf5c50
commit 8d8d4fa0c3
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C

View File

@ -1,3 +1,12 @@
function in_site(var)
return var
end
function in_domain(var)
return var
end
local function loadvar(varname)
local ok, val = pcall(assert(loadstring('return site.' .. varname)))
if ok then