summaryrefslogtreecommitdiff
path: root/rhautoimport
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-03-13 21:52:56 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-03-13 21:52:56 (GMT)
commit8e76e70f54a6ff4ca433de3dd7edd8f1c06b2672 (patch)
treea1255ef85d23cb8ad8ba0a03942bd045d2e6a243 /rhautoimport
parentd7e155efd9e2e5c6904aeb9ebca9feeb27aea5c8 (diff)
moved to bsd-mailx
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