diff --git a/Formula/netdata.rb b/Formula/netdata.rb index c47678d360..5449a090ae 100644 --- a/Formula/netdata.rb +++ b/Formula/netdata.rb @@ -1,8 +1,8 @@ class Netdata < Formula desc "Distributed real-time performance and health monitoring" homepage "https://my-netdata.io/" - url "https://github.com/netdata/netdata/releases/download/v1.11.1/netdata-v1.11.1.tar.gz" - sha256 "0150b2a060da0e5cc844bd9540d6704cd352c434ea1bb9d5268131830a815736" + url "https://github.com/netdata/netdata/releases/download/v1.13.0/netdata-v1.13.0.tar.gz" + sha256 "258e64a945bf80e91c4bffab35e7f2d8930025246814038f541ff0ac403a666c" bottle do sha256 "5c7c86d146d3d73fa791f30014242ed796a38809a3301a88f62555b8b20eb8bf" => :mojave @@ -32,6 +32,7 @@ class Netdata < Formula s.gsub!(/web files owner = .*/, "web files owner = #{ENV["USER"]}") s.gsub!(/web files group = .*/, "web files group = #{Etc.getgrgid(prefix.stat.gid).name}") end + (var/"netdata").mkpath end plist_options :manual => "#{HOMEBREW_PREFIX}/sbin/netdata -D" @@ -60,6 +61,8 @@ class Netdata < Formula test do system "#{sbin}/netdata", "-W", "set", "registry", "netdata unique id file", "#{testpath}/netdata.unittest.unique.id", + "-W", "set", "registry", "netdata management api key file", + "#{testpath}/netdata.api.key", "-W", "unittest" end end