summaryrefslogtreecommitdiffhomepage
path: root/brew/tailscale.tb-github.rb
diff options
context:
space:
mode:
authorMike Kramlich <groglogic@gmail.com>2021-02-27 11:31:34 -0700
committerMike Kramlich <groglogic@gmail.com>2021-02-27 11:31:34 -0700
commit9d3cb8780f458267bc3966d092ef024509a888be (patch)
tree1a8e7d6a54ac107596ae1482db5300980987cffa /brew/tailscale.tb-github.rb
parent06116b566eed5a68e47bc674d6fa475f88971ea7 (diff)
downloadtailscale-mkramlich/macos-brew2.tar.xz
tailscale-mkramlich/macos-brew2.zip
brew: added TODO; revised README; added to formula caveats and testmkramlich/macos-brew2
Several tweaks: * added correct 'services start' msg via formula caveats method added * added 'tailscaled -version' to formula test block * added TODO file, extracted from author's private Tailscale brew TODO notes * added more brew notes to README Signed-off-by: Mike Kramlich <groglogic@gmail.com>
Diffstat (limited to 'brew/tailscale.tb-github.rb')
-rw-r--r--brew/tailscale.tb-github.rb11
1 files changed, 10 insertions, 1 deletions
diff --git a/brew/tailscale.tb-github.rb b/brew/tailscale.tb-github.rb
index 7a9fa0d0e..fb136dc67 100644
--- a/brew/tailscale.tb-github.rb
+++ b/brew/tailscale.tb-github.rb
@@ -57,6 +57,14 @@ class Tailscale < Formula
(var/"lib/tailscale").mkpath
end
+ def caveats
+ <<~EOS
+ To have launchd start tailscale now and restart at boot:
+ sudo brew services start tailscale
+ NOTE: The caveat message below with 'restart at login' is incorrect, but we can't suppress it. Requires sudo.
+ EOS
+ end
+
plist_options manual: "sudo tailscaled --socket=#{HOMEBREW_PREFIX}/run/tailscale/tailscaled.sock --state=#{HOMEBREW_PREFIX}/lib/tailscale/tailscaled.state"
def plist
@@ -94,7 +102,8 @@ class Tailscale < Formula
end
test do
- system bin/"tailscale", "--version"
+ system bin/"tailscale", "version"
+ system bin/"tailscaled", "-version"
system bin/"tailscale", "netcheck"
end
end