gluon-authorized-keys: make authorized_keys optional in site.conf
This commit is contained in:
parent
41538d8415
commit
429affa80a
@ -1 +1 @@
|
|||||||
need_string_array(in_site_or_custom({'authorized_keys'}))
|
need_string_array(in_site_or_custom({'authorized_keys'}), false)
|
||||||
|
@ -14,7 +14,7 @@ end
|
|||||||
pcall(load_keys)
|
pcall(load_keys)
|
||||||
|
|
||||||
local f = io.open(file, 'a')
|
local f = io.open(file, 'a')
|
||||||
for _, key in ipairs(site.authorized_keys()) do
|
for _, key in ipairs(site.authorized_keys({})) do
|
||||||
if not keys[key] then
|
if not keys[key] then
|
||||||
f:write(key .. '\n')
|
f:write(key .. '\n')
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user