Sha256: 9a52140e027228c3c0d4d2ae06d543efb0890831d2ac93187e33930dc58d9a67

Contents?: true

Size: 455 Bytes

Versions: 2

Compression:

Stored size: 455 Bytes

Contents

#!/usr/bin/env sh
jira_user="$1"
jira_pass="$2"
email_to="$3"
email_summary=/tmp/opsask-$(date +%s).txt
ruby opsask-generate-email-summary.rb $jira_user $jira_pass > $email_summary
if [ -s $email_summary ] ; then
  echo 'Sending out daily summary'
  cat $email_summary | mail -a 'From: noreply@opsask.bluejeansnet.com' -a 'Content-Type: text/html' -s "OpsAsk Summary for $(date '+%B %-d')" $email_to
else
  echo 'Nothing to send'
fi
rm -rf $email_summary

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
opsask-2.3.8 bin/opsask-send-email-summary.sh
opsask-2.3.7 bin/opsask-send-email-summary.sh