smartmontools: use standard subject in notification emails

This makes the notification script use the subject generated by smartmontools
itself both for consistency with other distros and to include the hostname.
This commit is contained in:
pacien 2020-08-16 20:48:42 +02:00
parent f1922cdbdc
commit ea37c9caa1

View file

@ -20,7 +20,7 @@ let
${pkgs.coreutils}/bin/cat << EOF
From: smartd on ${host} <${nm.sender}>
To: undisclosed-recipients:;
Subject: SMART error on $SMARTD_DEVICESTRING: $SMARTD_FAILTYPE
Subject: $SMARTD_SUBJECT
$SMARTD_FULLMESSAGE
EOF