gluon-authorized-keys: make authorized_keys optional in site.conf

This commit is contained in:
lemoer 2021-01-06 15:48:40 +01:00
parent 41538d8415
commit 429affa80a
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
need_string_array(in_site_or_custom({'authorized_keys'}))
need_string_array(in_site_or_custom({'authorized_keys'}), false)

View File

@ -14,7 +14,7 @@ end
pcall(load_keys)
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
f:write(key .. '\n')
end