summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--depends1
-rwxr-xr-xrhautoimport4
2 files changed, 3 insertions, 2 deletions
diff --git a/depends b/depends
index 57d9253..c0e7297 100644
--- a/depends
+++ b/depends
@@ -6,3 +6,4 @@ liburi-perl
libwww-perl
libxml-feed-perl
perl
+bsd-mailx
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