mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-07 09:00:28 +00:00
nuageinit: make addsshkey friendly for testsuite
This commit is contained in:
parent
83fcab792c
commit
fa07b02f6e
|
@ -177,6 +177,10 @@ end
|
|||
local function addsshkey(homedir, key)
|
||||
local chownak = false
|
||||
local chowndotssh = false
|
||||
local root = os.getenv("NUAGE_FAKE_ROOTDIR")
|
||||
if root then
|
||||
homedir = root .. "/" .. homedir
|
||||
end
|
||||
local ak_path = homedir .. "/.ssh/authorized_keys"
|
||||
local dotssh_path = homedir .. "/.ssh"
|
||||
local dirattrs = lfs.attributes(ak_path)
|
||||
|
|
Loading…
Reference in a new issue