Skip to content

Commit

Permalink
teleport: port linux changes
Browse files Browse the repository at this point in the history
Closes #82178.

Signed-off-by: BrewTestBot <[email protected]>
  • Loading branch information
SMillerDev authored and BrewTestBot committed Aug 12, 2021
1 parent bf28235 commit 01a8c26
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Formula/teleport.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ def install
.gsub("/var/lib/teleport", testpath)
.gsub("/var/run", testpath)
.gsub(/https_(.*)/, "")
begin
pid = spawn("#{bin}/teleport start -c #{testpath}/config.yml")
sleep 5
system "/usr/bin/curl", "--insecure", "https://localhost:3080"
system "/usr/bin/nc", "-z", "localhost", "3022"
system "/usr/bin/nc", "-z", "localhost", "3023"
system "/usr/bin/nc", "-z", "localhost", "3025"
ensure
Process.kill(9, pid)

fork do
exec "#{bin}/teleport start -c #{testpath}/config.yml --debug"
end

sleep 10
system "curl", "--insecure", "https://localhost:3080"
system "nc", "-z", "localhost", "3022"
system "nc", "-z", "localhost", "3023"
system "nc", "-z", "localhost", "3025"
end
end

0 comments on commit 01a8c26

Please sign in to comment.