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:
Florian Eckert 2021-04-08 14:39:22 +02:00
parent 511405078b
commit 63c5cb5614
2 changed files with 1 additions and 7 deletions

View file

@ -22,7 +22,7 @@ function index()
return
end
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
return
end

View file

@ -97,12 +97,6 @@ o = s:option(Flag, "remote_endpoint",
translate("Connect to remote endpoint"))
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",
translate("Remote Host"))
o.placeholder = "10.1.1.2"