summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbertagaz <bertagaz@ptitcanardnoir.org>2017-09-19 12:16:19 +0200
committerbertagaz <bertagaz@ptitcanardnoir.org>2017-09-19 12:16:19 +0200
commit47792efcd995bbc1804ac9ee9df7abbd9fac4e5d (patch)
tree69f737ac7ef3a061718f0cbabea0073f975fb6b2
parent308ba3c831af0908d0d0d5b00396c4eafb77df30 (diff)
Simplify the email notification on new package upload.
Only send the .changes file. Refs: #5894
-rw-r--r--files/reprepro/custom/notify-incoming/reprepro-notify-incoming-changes3
1 files changed, 1 insertions, 2 deletions
diff --git a/files/reprepro/custom/notify-incoming/reprepro-notify-incoming-changes b/files/reprepro/custom/notify-incoming/reprepro-notify-incoming-changes
index b033e4a..2b3a23a 100644
--- a/files/reprepro/custom/notify-incoming/reprepro-notify-incoming-changes
+++ b/files/reprepro/custom/notify-incoming/reprepro-notify-incoming-changes
@@ -25,9 +25,8 @@ fi
HOSTNAME=$(/bin/hostname --fqdn)
SUBJECT="Notification of incoming .changes file on $HOSTNAME"
-DATE=$(/bin/date -uIseconds)
CHANGES_CONTENT="$(cat ${CHANGES_FILE})"
-printf 'From: %s\nTo: %s\nSubject: %s\nHello there,\n\nAt %s the following .changes file appeared on %s:\n\n%s\n\nWith content:\n\n%s\n\nFYI!\n' "$MAILFROM" "$MAILTO" "$SUBJECT" "$DATE" "$HOSTNAME" "$CHANGES_FILE" "$CHANGES_CONTENT" | /usr/sbin/sendmail -t
+printf 'From: %s\nTo: %s\nSubject: %s\n%s' "$MAILFROM" "$MAILTO" "$SUBJECT" "$CHANGES_CONTENT" | /usr/sbin/sendmail -t
printf 'Incoming change detected: %s\n' "$CHANGES_FILE"