From e6157451c18f884b37c14a69f585900c0107dccf Mon Sep 17 00:00:00 2001 From: Jean-Pierre PRUNARET Date: Sat, 12 Aug 2017 22:04:00 +0200 Subject: [PATCH] nixos/munin: scripts need to be executable in order to build a wrapper MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit "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".] --- nixos/modules/services/monitoring/munin.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/monitoring/munin.nix b/nixos/modules/services/monitoring/munin.nix index b26bcba64059..723b04dc0fe9 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