summary refs log tree commit diff
path: root/nixos/tests/prometheus-exporters.nix
diff options
context:
space:
mode:
authorMartin Milata <martin@martinmilata.cz>2020-03-06 01:24:48 +0100
committerMartin Milata <martin@martinmilata.cz>2020-03-06 01:44:05 +0100
commite7ed7901a8c7242e4c12806547e5405e79b17aeb (patch)
treea95e2c5b0cfb1a3704a7e7fa53ff46a28aba0d8d /nixos/tests/prometheus-exporters.nix
parent3b5cf35e8bc5198cbd9f2e34a6df9c971947a7e8 (diff)
downloadnixpkgs-e7ed7901a8c7242e4c12806547e5405e79b17aeb.tar
nixpkgs-e7ed7901a8c7242e4c12806547e5405e79b17aeb.tar.gz
nixpkgs-e7ed7901a8c7242e4c12806547e5405e79b17aeb.tar.bz2
nixpkgs-e7ed7901a8c7242e4c12806547e5405e79b17aeb.tar.lz
nixpkgs-e7ed7901a8c7242e4c12806547e5405e79b17aeb.tar.xz
nixpkgs-e7ed7901a8c7242e4c12806547e5405e79b17aeb.tar.zst
nixpkgs-e7ed7901a8c7242e4c12806547e5405e79b17aeb.zip
nixos/prometheus-mail-exporter: misc fixes
 - Fix misspelled option. mkRenamedOptionModule is not used because the
   option hasn't really worked before.
 - Add missing cfg.telemetryPath arg to ExecStart.
 - Fix mkdir invocation in test.
Diffstat (limited to 'nixos/tests/prometheus-exporters.nix')
-rw-r--r--nixos/tests/prometheus-exporters.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/tests/prometheus-exporters.nix b/nixos/tests/prometheus-exporters.nix
index 3d0d00bfbe6..b84e589e84c 100644
--- a/nixos/tests/prometheus-exporters.nix
+++ b/nixos/tests/prometheus-exporters.nix
@@ -224,7 +224,7 @@ let
           after = [ "postfix.service" ];
           requires = [ "postfix.service" ];
           preStart = ''
-            mkdir -p 0600 mail-exporter/new
+            mkdir -p -m 0700 mail-exporter/new
           '';
           serviceConfig = {
             ProtectHome = true;