Browse Source

luci-app-lxc: use ubus binding for lxc-create

Signed-off-by: Petar Koretic <petar.koretic@sartura.hr>
lilik-openwrt-22.03
Petar Koretic 10 years ago
committed by Luka Perkov
parent
commit
d15b15b951
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      utils/luci-app-lxc/files/controller/lxc.lua

+ 2
- 2
utils/luci-app-lxc/files/controller/lxc.lua View File

@ -80,9 +80,9 @@ function lxc_create(lxc_name, lxc_template)
local target = _G.DISTRIB_TARGET:match('([^/]+)')
local res = os.execute("lxc-create -t download -n " .. lxc_name .. " -- --server=" .. url .. " --no-validate --dist " .. lxc_template .. " --release bb --arch " .. target)
local data = conn:call("lxc", "create", { name = lxc_name, template = "download", args = { "--server", url, "--no-validate", "--dist", lxc_template, "--release", "bb", "--arch", target } } )
luci.http.write(tostring(res))
luci.http.write(data)
end
function lxc_action(lxc_action, lxc_name)


Loading…
Cancel
Save