|
+function sns_log_file_all () { + local subject="$1" + local short_subject="$(echo "${subject:0:100}")" + echo -e "Sending alert and log file contents to administrator via AWS SNS (all alerts)." >&2
C. Thomas Tyler (on backup_functions.sh, line 423) commented
10 months ago
Please remove the echo, or else surround it with an if conditional along the lines of: if [[ -n "${SDP_DEBUG:-}" ]]; then Reasoning: In backup_functions.sh, any direct output to the terminal (stdout or stderr) is generally a bug (except for debugging). SDP scripts that use these are called by crontab, and if scripts called by crontab generate any output, then crontab itself sends its own email, which causes confusion because it's not the desired content of the email that the SDP script's send themselves. |
Reply ·0 | |
|