diff options
author | Franz Pletz <fpletz@fnordicwalking.de> | 2017-11-14 12:32:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-14 12:32:23 +0100 |
commit | 775fb7e127017fbf163481b815dc589319c634ea (patch) | |
tree | 18461604008599ff18b5ff27ee82ed8d3637ea4c /nixos | |
parent | c404aa43a902a7a97cab5e0268cf5f7b91baae44 (diff) | |
parent | 292715ce23d002bab33d9409f3a4299b63bc78af (diff) | |
download | nixlib-775fb7e127017fbf163481b815dc589319c634ea.tar nixlib-775fb7e127017fbf163481b815dc589319c634ea.tar.gz nixlib-775fb7e127017fbf163481b815dc589319c634ea.tar.bz2 nixlib-775fb7e127017fbf163481b815dc589319c634ea.tar.lz nixlib-775fb7e127017fbf163481b815dc589319c634ea.tar.xz nixlib-775fb7e127017fbf163481b815dc589319c634ea.tar.zst nixlib-775fb7e127017fbf163481b815dc589319c634ea.zip |
Merge pull request #31616 from jerith666/smartd-cat
smartd: fix 'cat: command not found' error
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/monitoring/smartd.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/modules/services/monitoring/smartd.nix b/nixos/modules/services/monitoring/smartd.nix index 4d10299a9879..1d6940c516a9 100644 --- a/nixos/modules/services/monitoring/smartd.nix +++ b/nixos/modules/services/monitoring/smartd.nix @@ -17,7 +17,7 @@ let #! ${pkgs.stdenv.shell} ${optionalString nm.enable '' { - cat << EOF + ${pkgs.coreutils}/bin/cat << EOF From: smartd on ${host} <root> To: undisclosed-recipients:; Subject: SMART error on $SMARTD_DEVICESTRING: $SMARTD_FAILTYPE @@ -30,7 +30,7 @@ let ''} ${optionalString nw.enable '' { - cat << EOF + ${pkgs.coreutils}/bin/cat << EOF Problem detected with disk: $SMARTD_DEVICESTRING Warning message from smartd is: @@ -41,7 +41,7 @@ let ${optionalString nx.enable '' export DISPLAY=${nx.display} { - cat << EOF + ${pkgs.coreutils}/bin/cat << EOF Problem detected with disk: $SMARTD_DEVICESTRING Warning message from smartd is: |