Merge pull request #31616 from jerith666/smartd-cat

smartd: fix 'cat: command not found' error

authored by Franz Pletz and committed by GitHub 775fb7e1 c404aa43

+3 -3
+3 -3
nixos/modules/services/monitoring/smartd.nix
··· 17 17 #! ${pkgs.stdenv.shell} 18 18 ${optionalString nm.enable '' 19 19 { 20 - cat << EOF 20 + ${pkgs.coreutils}/bin/cat << EOF 21 21 From: smartd on ${host} <root> 22 22 To: undisclosed-recipients:; 23 23 Subject: SMART error on $SMARTD_DEVICESTRING: $SMARTD_FAILTYPE ··· 30 30 ''} 31 31 ${optionalString nw.enable '' 32 32 { 33 - cat << EOF 33 + ${pkgs.coreutils}/bin/cat << EOF 34 34 Problem detected with disk: $SMARTD_DEVICESTRING 35 35 Warning message from smartd is: 36 36 ··· 41 41 ${optionalString nx.enable '' 42 42 export DISPLAY=${nx.display} 43 43 { 44 - cat << EOF 44 + ${pkgs.coreutils}/bin/cat << EOF 45 45 Problem detected with disk: $SMARTD_DEVICESTRING 46 46 Warning message from smartd is: 47 47