Merge pull request #154 from dgibbs64/dev
[hostname] contains invalid character '[' in CentOS 7
This commit is contained in:
commit
cc2ae25355
1 changed files with 1 additions and 1 deletions
|
|
@ -488,7 +488,7 @@ email_logfile()
|
||||||
if [ ! -x "${MAILCMD}" ]; then
|
if [ ! -x "${MAILCMD}" ]; then
|
||||||
echo -e "Email couldn't be sent. ${MAIL} not available." >&2
|
echo -e "Email couldn't be sent. ${MAIL} not available." >&2
|
||||||
else
|
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
|
case ${MAIL} in
|
||||||
ssmtp)
|
ssmtp)
|
||||||
mailcmd_ssmtp;;
|
mailcmd_ssmtp;;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue