Changeset 1567


Ignore:
Timestamp:
08/05/09 09:31:19 (16 years ago)
Author:
Mathieu Morlighem
Message:

Added sendmail for mac

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/cron/nightlyrun.sh

    r1566 r1567  
    115115for i in `echo $MAILINGLIST`; do
    116116
    117 if [[ "$OS" == "winxp32" ]]
    118 then
    119         email -html -f "ISSM Nightly run $EMAIL_ADRESS" -s "Nightly runs of $ISSM_RELEASE OS: $OS. " $i < report.html
    120 else
    121         cat - report.html <<HERE | /usr/lib/sendmail  -oi -t
     117        if [[ "$OS" == "winxp32" ]]
     118        then
     119                email -html -f "ISSM Nightly run $EMAIL_ADRESS" -s "Nightly runs of $ISSM_RELEASE , operating system: $OS. " $i < report.html
     120        else
     121                if [[ "$OS" == "linux64" ]]
     122                then
     123                        cat - report.html <<HERE | /usr/lib/sendmail  -oi -t
    122124From: "ISSM Nightly run" <$EMAIL_ADRESS>
    123125To: $i
    124 Subject: Nightly runs of $ISSM_RELEASE OS: $OS.
     126Subject: Nightly runs of $ISSM_RELEASE , operating system: $OS.
    125127Mime-Version: 1.0
    126128Content-Type: text/html
    127129HERE
    128 fi
     130                else
     131                        cat - report.html <<HERE | /usr/sbin/sendmail  -oi -t
     132From: "ISSM Nightly run" <$EMAIL_ADRESS>
     133To: $i
     134Subject: Nightly runs of $ISSM_RELEASE , operating system: $OS.
     135Mime-Version: 1.0
     136Content-Type: text/html
     137HERE
     138                fi
     139        fi
    129140
    130141done
Note: See TracChangeset for help on using the changeset viewer.