summary refs log tree commit diff
path: root/nixos/modules/services/monitoring/munin.nix
diff options
context:
space:
mode:
authorJean-Pierre PRUNARET <jean-pierre+git@prunetwork.fr>2017-08-12 22:04:00 +0200
committerBjørn Forsman <bjorn.forsman@gmail.com>2017-08-14 07:50:32 +0200
commite6157451c18f884b37c14a69f585900c0107dccf (patch)
tree405f1796f98e333fc8fc7c3fe2dcaa7d20082e4b /nixos/modules/services/monitoring/munin.nix
parent059d722e5ce492917d6c48e9137f8df208231503 (diff)
downloadnixpkgs-e6157451c18f884b37c14a69f585900c0107dccf.tar
nixpkgs-e6157451c18f884b37c14a69f585900c0107dccf.tar.gz
nixpkgs-e6157451c18f884b37c14a69f585900c0107dccf.tar.bz2
nixpkgs-e6157451c18f884b37c14a69f585900c0107dccf.tar.lz
nixpkgs-e6157451c18f884b37c14a69f585900c0107dccf.tar.xz
nixpkgs-e6157451c18f884b37c14a69f585900c0107dccf.tar.zst
nixpkgs-e6157451c18f884b37c14a69f585900c0107dccf.zip
nixos/munin: scripts need to be executable in order to build a wrapper
"Builder called die: Cannot wrap
/nix/store/XXX-munin-available-plugins/plugin.sh because it is not an
executable file"

[Bjørn: Keep DRY, quote "$file".]
Diffstat (limited to 'nixos/modules/services/monitoring/munin.nix')
-rw-r--r--nixos/modules/services/monitoring/munin.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/nixos/modules/services/monitoring/munin.nix b/nixos/modules/services/monitoring/munin.nix
index b26bcba6405..723b04dc0fe 100644
--- a/nixos/modules/services/monitoring/munin.nix
+++ b/nixos/modules/services/monitoring/munin.nix
@@ -26,7 +26,9 @@ let
 
       for file in $out/*; do
         case "$file" in
-            plugin.sh) continue;;
+            */plugin.sh|*/plugins.history)
+              chmod +x "$file"
+              continue;;
         esac
 
         # read magic makers from the file