Skip to content

Commit

Permalink
Ralftar/email2 (#56)
Browse files Browse the repository at this point in the history
* Update start.sh

* Update wrapper.sh

* Update VERSION
  • Loading branch information
ralftar committed Nov 28, 2023
1 parent a663d7f commit 2b4af96
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.12
0.0.13
14 changes: 10 additions & 4 deletions scripts/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,12 @@ done

# Send startup e-mail

mail_body="CloudDump ${HOST} STARTED
mail_body="CloudDump ${HOST}
STARTED
Debug: ${DEBUG}
SMTP server: ${SMTPSERVER}
"

Expand All @@ -330,15 +335,16 @@ JOBS
${jobs_summary}
"

mail_body="${mail_body}
Vendanor CloudDump v${VERSION}"

if [ "${MAIL}" = "mutt" ]; then
echo "${mail_body}" | EMAIL="${MAILFROM} <${MAILFROM}>" ${MAIL} -s "[Started] CloudDump ${HOST}" "${MAILTO}" || exit 1
else
echo "${mail_body}" | ${MAIL} -r "${MAILFROM} <${MAILFROM}>" -s "[Started] CloudDump ${HOST}" "${MAILTO}" || exit 1
fi

mail_body="${mail_body}
CloudDump v${VERSION}"

# Setup crontab

Expand Down
4 changes: 3 additions & 1 deletion scripts/wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,9 @@ fi

attachments="${attachments} --"

message="CloudDump ${HOST} JOB REPORT (${result_text})
message="CloudDump ${HOST}
JOB REPORT (${result_text})
Script: ${SCRIPTFILENAME}
ID: ${JOBID}
Expand Down

0 comments on commit 2b4af96

Please sign in to comment.