From db14ea39261d8f70c2006e9eac021614ecad19df Mon Sep 17 00:00:00 2001 From: Rodney Lorrimar Date: Sun, 26 Mar 2017 22:56:28 +0100 Subject: longview service: don't write passwords to nix store Adds services.longview.{apiKeyFile,mysqlPasswordFile} options as alternatives to apiKey and mysqlPassword, which still work, but are deprecated with a warning message. Related to #24288. --- pkgs/servers/monitoring/longview/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'pkgs/servers') diff --git a/pkgs/servers/monitoring/longview/default.nix b/pkgs/servers/monitoring/longview/default.nix index d4f22ab81ee..212ab8513a9 100644 --- a/pkgs/servers/monitoring/longview/default.nix +++ b/pkgs/servers/monitoring/longview/default.nix @@ -16,8 +16,13 @@ stdenv.mkDerivation rec { ./log-stdout.patch ]; + # Read all configuration from /run/longview postPatch = '' - substituteInPlace Linode/Longview/Util.pm --replace /var/run/longview.pid /run/longview.pid + substituteInPlace Linode/Longview/Util.pm \ + --replace /var/run/longview.pid /run/longview/longview.pid \ + --replace /etc/linode /run/longview + substituteInPlace Linode/Longview.pl \ + --replace /etc/linode /run/longview ''; buildInputs = [ perl makeWrapper glibc ] -- cgit 1.4.1