From a5fb52c0f9e0ee98eac51062b5f7795cb2eb08dc Mon Sep 17 00:00:00 2001 From: Dominic Reich Date: Sun, 7 Jul 2024 22:11:15 +0200 Subject: [PATCH] adjust staubsauger.sh to work on Arch Linux --- staubsauger.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/staubsauger.sh b/staubsauger.sh index 2e24fcb..9d53ebd 100644 --- a/staubsauger.sh +++ b/staubsauger.sh @@ -8,7 +8,6 @@ to_report='Admin email <@>' from='Staubsauger-Erinnerung '; subject=`printf "Staubsauger-Erinnerung vom %s" "$date"`; subject_report=`printf "[Cron Report] $subject"`; -host=$(/bin/hostname); headers=`printf "From: %s\r\nReply-To: %s\r\nContent-Type: text/html; charset=utf-8\r\n" "$from" "$to_report"`; # Some default values @@ -102,13 +101,13 @@ if [ $send == "yes" ]; then # es wird eine benachrichtigung versendet if [ $sendcc == "yes" ]; then # auch an den admin/report - echo -e "${headers}\n\n${body}" | /usr/local/bin/mutt -H - -s "${subject}" -- "${to_notification}" "${to_report}" + echo -e "${headers}\n\n${body}" | mutt -H - -s "${subject}" -- "${to_notification}" "${to_report}" else # nur an die notification mail adresse - echo -e "${headers}\n\n${body}" | /usr/local/bin/mutt -H - -s "${subject}" -- "${to_notification}" + echo -e "${headers}\n\n${body}" | mutt -H - -s "${subject}" -- "${to_notification}" fi fi # a report is always sent -echo -e "${headers}\n\n${bodymg}" | /usr/local/bin/mutt -H - -s "${subject_report}" -- "${to_report}" +echo -e "${headers}\n\n${bodymg}" | mutt -H - -s "${subject_report}" -- "${to_report}"