[hostname] contains invalid character '[' in CentOS 7
[hostname] contains invalid character '[' in CentOS 7 changed [ to ( See https://www.jethrocarr.com/2012/06/10/mailx-contains-invalid-character-2/ There may be a better way to resolve this however this quick fix works
This commit is contained in:
parent
418ab79b11
commit
2ad58dc07e
1 changed files with 1 additions and 1 deletions
|
|
@ -488,7 +488,7 @@ email_logfile()
|
|||
if [ ! -x "${MAILCMD}" ]; then
|
||||
echo -e "Email couldn't be sent. ${MAIL} not available." >&2
|
||||
else
|
||||
EMAIL_SUBJECT=${EMAIL_SUBJECT:="duplicity-backup ${BACKUP_STATUS:-"ERROR"} [${HOSTNAME}] ${LOG_FILE}"}
|
||||
EMAIL_SUBJECT=${EMAIL_SUBJECT:="duplicity-backup ${BACKUP_STATUS:-"ERROR"} (${HOSTNAME}) ${LOG_FILE}"}
|
||||
case ${MAIL} in
|
||||
ssmtp)
|
||||
mailcmd_ssmtp;;
|
||||
|
|
|
|||
Loading…
Reference in a new issue