about summary refs log tree commit diff
path: root/nixos/modules/services/monitoring/prometheus/exporters/blackbox.nix
diff options
context:
space:
mode:
authorMartin Milata <martin@martinmilata.cz>2020-03-06 00:22:15 +0100
committerMartin Milata <martin@martinmilata.cz>2020-03-06 01:43:20 +0100
commit0ac24ccf2a076c6cdad20f739031fe65d49a51f4 (patch)
tree86c3cb5fe18c71a3a1bc1400afa5054f75a2098f /nixos/modules/services/monitoring/prometheus/exporters/blackbox.nix
parent99a29107333c31be2db999d83bd0a5ba33afa8f7 (diff)
nixos/prometheus-*-exporter: escape shell args
Diffstat (limited to 'nixos/modules/services/monitoring/prometheus/exporters/blackbox.nix')
-rw-r--r--nixos/modules/services/monitoring/prometheus/exporters/blackbox.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/monitoring/prometheus/exporters/blackbox.nix b/nixos/modules/services/monitoring/prometheus/exporters/blackbox.nix
index 8a90afa998423..fe8d905da3fe3 100644
--- a/nixos/modules/services/monitoring/prometheus/exporters/blackbox.nix
+++ b/nixos/modules/services/monitoring/prometheus/exporters/blackbox.nix
@@ -61,7 +61,7 @@ in {
       ExecStart = ''
         ${pkgs.prometheus-blackbox-exporter}/bin/blackbox_exporter \
           --web.listen-address ${cfg.listenAddress}:${toString cfg.port} \
-          --config.file ${adjustedConfigFile} \
+          --config.file ${escapeShellArg adjustedConfigFile} \
           ${concatStringsSep " \\\n  " cfg.extraFlags}
       '';
       ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";