nuageinit: improve debugging when mkdir fails
This commit is contained in:
parent
19fb9ad746
commit
a6ecbf2b35
|
@ -188,10 +188,7 @@ local function addsshkey(homedir, key)
|
|||
chownak = true
|
||||
dirattrs = lfs.attributes(dotssh_path)
|
||||
if dirattrs == nil then
|
||||
if not lfs.mkdir(dotssh_path) then
|
||||
warnmsg("nuageinit: impossible to create ".. dotssh_path)
|
||||
return
|
||||
end
|
||||
assert(lfs.mkdir(dotssh_path))
|
||||
chowndotssh = true
|
||||
dirattrs = lfs.attributes(homedir)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue