Sha256: 9088df0d13cf694c6b746b6769fa6a6701ce1c3062bea8291caa80caebbec691

Contents?: true

Size: 445 Bytes

Versions: 2

Compression:

Stored size: 445 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.bjn.io' -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.10 bin/opsask-send-email-summary.sh
opsask-2.3.9 bin/opsask-send-email-summary.sh