mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
nuageinit: make addsshkey friendly for testsuite
This commit is contained in:
parent
83fcab792c
commit
fa07b02f6e
1 changed files with 4 additions and 0 deletions
|
|
@ -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