luci-app-dockerman: removal of the option socket_path
This option is for debug purposes only. It makes no sense to offer this option to the user. Especially as it is not used for a remote connection. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
parent
511405078b
commit
63c5cb5614
2 changed files with 1 additions and 7 deletions
|
@ -22,7 +22,7 @@ function index()
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
local socket = luci.model.uci.cursor():get("dockerd", "globals", "socket_path")
|
local socket = luci.model.uci.cursor():get("dockerd", "globals", "socket_path") or "/var/run/docker.sock"
|
||||||
if socket and not nixio.fs.access(socket) then
|
if socket and not nixio.fs.access(socket) then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
|
@ -97,12 +97,6 @@ o = s:option(Flag, "remote_endpoint",
|
||||||
translate("Connect to remote endpoint"))
|
translate("Connect to remote endpoint"))
|
||||||
o.rmempty = false
|
o.rmempty = false
|
||||||
|
|
||||||
o = s:option(Value, "socket_path",
|
|
||||||
translate("Docker Socket Path"))
|
|
||||||
o.default = "unix:///var/run/docker.sock"
|
|
||||||
o.placeholder = "unix:///var/run/docker.sock"
|
|
||||||
o:depends("remote_endpoint", 1)
|
|
||||||
|
|
||||||
o = s:option(Value, "remote_host",
|
o = s:option(Value, "remote_host",
|
||||||
translate("Remote Host"))
|
translate("Remote Host"))
|
||||||
o.placeholder = "10.1.1.2"
|
o.placeholder = "10.1.1.2"
|
||||||
|
|
Loading…
Reference in a new issue