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