mirror of
https://github.com/mr-vercetti/bash-scripts.git
synced 2025-07-03 05:45:35 +02:00
Use resend instead of sendgrid for emails
This commit is contained in:
@ -7,7 +7,7 @@ remote_path=""
|
||||
email_from=""
|
||||
email_name=""
|
||||
email_to=""
|
||||
send_email_script_path="/etc/sg-send-email.sh"
|
||||
send_email_script_path=""
|
||||
|
||||
print_usage () {
|
||||
echo "Usage: "$0" -l LOCAL_PATH -r REMOTE_PATH -f EMAIL_FROM -n EMAIL_NAME -t EMAIL_TO -s SEND_EMAIL_SCRIPT_PATH"
|
||||
@ -16,7 +16,7 @@ print_usage () {
|
||||
echo "EMAIL_FROM - sender's email address"
|
||||
echo "EMAIL_NAME - sender's name"
|
||||
echo "EMAIL_TO - recipient's email adress"
|
||||
echo "SEND_EMAIL_SCRIPT_PATH - a path to the send email script (default: /etc/sg-send-email.sh)"
|
||||
echo "SEND_EMAIL_SCRIPT_PATH - a path to the send email script (default: /etc/send-email.sh)"
|
||||
}
|
||||
|
||||
while getopts "l:r:f:n:t:s:h" opt
|
||||
@ -62,4 +62,3 @@ if [[ $exit_code -ne 0 ]]; then
|
||||
fi
|
||||
|
||||
${send_email_script_path} -f ${email_from} -n ${email_name} -t ${email_to} -s "Backup sync to S3 status: ${status}" -m "${email_message}"
|
||||
|
||||
|
Reference in New Issue
Block a user