Update do-backup for userdirs. Remove ''s around from= for mailx.

This commit is contained in:
Darren 'Tadgy' Austin 2023-11-06 15:35:26 +00:00
commit 25394932fb
4 changed files with 41 additions and 10 deletions

View file

@ -36,7 +36,7 @@ fi
# Send the message.
if [[ -n "${EMAIL_TO[*]}" ]]; then
mailx "${MAILX_ARGS[@]}" -S "from='$EMAIL_FROM'" -s "$EMAIL_SUBJECT" "${EMAIL_TO[@]}" <<-EOF 2>/dev/null || \
mailx "${MAILX_ARGS[@]}" -S "from=$EMAIL_FROM" -s "$EMAIL_SUBJECT" "${EMAIL_TO[@]}" <<-EOF 2>/dev/null || \
{ printf "%s: %s\\n" "${0##*/}" "mailx command failed" >&2; RET=1; }
Auth'd User: $RSYNC_USER_NAME@$RSYNC_HOST_NAME [$RSYNC_HOST_ADDR]
Module: $RSYNC_MODULE_NAME ($RSYNC_MODULE_PATH)