summaryrefslogtreecommitdiff
path: root/rhautoimport
diff options
context:
space:
mode:
Diffstat (limited to 'rhautoimport')
-rwxr-xr-xrhautoimport4
1 files changed, 2 insertions, 2 deletions
diff --git a/rhautoimport b/rhautoimport
index 4534fa7..1ffd50f 100755
--- a/rhautoimport
+++ b/rhautoimport
@@ -67,7 +67,7 @@ fi
/usr/bin/rhautoimport-$1 ${@:2} > $LOG_FILE 2>&1
case $? in
0)
- mail -a "Content-Type: text/plain; charset=utf-8" -s "$TITLE - Imported Successfully" $MAIL_TO < $LOG_FILE
+ bsd-mailx -a "Content-Type: text/plain; charset=utf-8" -s "$TITLE - Imported Successfully" $MAIL_TO < $LOG_FILE
;;
42)
# do nothing - the script didn't import anything but no message should be sent
@@ -78,7 +78,7 @@ fi
else
subject="$TITLE - Import Error - will retry"
fi
- mail -a "Content-Type: text/plain; charset=utf-8" -s "$subject" $MAIL_TO < $LOG_FILE
+ bsd-mailx -a "Content-Type: text/plain; charset=utf-8" -s "$subject" $MAIL_TO < $LOG_FILE
;;
esac
rm -f $LOG_FILE