Changeset ac48c86


Ignore:
Timestamp:
Aug 13, 2013 6:04:38 AM (11 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2
Children:
e977365
Parents:
35e8a267
Message:

Change e-mail subject, so we can at a glance see result of snapshot / replication

Location:
src-sh/lpreserver/backend
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src-sh/lpreserver/backend/functions.sh

    r00c51cb rac48c86  
    142142email_msg() { 
    143143   if [ -z "$EMAILADDY" ] ; then return ; fi 
    144    echo -e "$2"  | mail -s "Life-Preserver `hostname`: $1" $EMAILADDY 
     144   echo -e "$2"  | mail -s "$1 - `hostname`" $EMAILADDY 
    145145} 
    146146 
  • src-sh/lpreserver/backend/runrep.sh

    rfeb0fb0 rac48c86  
    3030 
    3131case $EMAILMODE in 
    32     ALL) email_msg "Automated Replication - $title" "`echo_queue_msg`" ;; 
     32    ALL) email_msg "$title - Automated Replication" "`echo_queue_msg`" ;; 
    3333    *) if [ $status -ne 0 ] ; then 
    34           email_msg "Automated Replication - $title" "`echo_queue_msg`" 
     34          email_msg "$title - Automated Replication" "`echo_queue_msg`" 
    3535       fi 
    3636       ;; 
  • src-sh/lpreserver/backend/runsnap.sh

    r00c51cb rac48c86  
    6565# If we failed at any point, sent out a notice 
    6666if [ $snapStat -ne 0 ] ; then 
    67    email_msg "Automated Snapshot - FAILED" "`echo_queue_msg`" 
     67   email_msg "FAILED - Automated Snapshot" "`echo_queue_msg`" 
    6868fi 
    6969 
    7070# If we are successful and user wants all notifications, send out a message 
    7171if [ $snapStat -eq 0 -a "$EMAILMODE" = "ALL" ] ; then 
    72    email_msg "Automated Snapshot - Success" "`echo_queue_msg`" 
     72   email_msg "Success - Automated Snapshot" "`echo_queue_msg`" 
    7373fi 
    7474 
Note: See TracChangeset for help on using the changeset viewer.