luci-app-dockerman: cbi/container fix indent
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
parent
dff11ad240
commit
c19a7d18e5
1 changed files with 23 additions and 20 deletions
|
@ -700,7 +700,10 @@ elseif action == "console" then
|
|||
local cmd_docker = luci.util.exec("which docker"):match("^.+docker") or nil
|
||||
local cmd_ttyd = luci.util.exec("which ttyd"):match("^.+ttyd") or nil
|
||||
|
||||
if not cmd_docker or not cmd_ttyd or cmd_docker:match("^%s+$") or cmd_ttyd:match("^%s+$") then return end
|
||||
if not cmd_docker or not cmd_ttyd or cmd_docker:match("^%s+$") or cmd_ttyd:match("^%s+$")then
|
||||
return
|
||||
end
|
||||
|
||||
local kill_ttyd = 'netstat -lnpt | grep ":7682[ \t].*ttyd$" | awk \'{print $NF}\' | awk -F\'/\' \'{print "kill -9 " $1}\' | sh > /dev/null'
|
||||
luci.util.exec(kill_ttyd)
|
||||
local hosts
|
||||
|
|
Loading…
Reference in a new issue