fixup! gluon-web-admin: use util.popen3 in remote.lua
This commit is contained in:
parent
77bf2f9cbf
commit
6aa7d85c12
@ -81,7 +81,7 @@ local function set_password(password)
|
|||||||
stderr = sp.DEVNULL}
|
stderr = sp.DEVNULL}
|
||||||
|
|
||||||
local pid, pipe = sp.popen('passwd', {}, options)
|
local pid, pipe = sp.popen('passwd', {}, options)
|
||||||
local inw = pipe["stdin"]
|
local inw = pipe.stdin
|
||||||
|
|
||||||
unistd.write(inw, string.format('%s\n%s\n', password, password))
|
unistd.write(inw, string.format('%s\n%s\n', password, password))
|
||||||
unistd.close(inw)
|
unistd.close(inw)
|
||||||
|
Loading…
Reference in New Issue
Block a user