mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-02-03 18:49:29 -05:00
Use sendmail(8) instead of mail(1) in order to be able to set the "Content-Type" header field on systems where the available mail(1) command doesn't allow for setting it. This makes the "-H" flag (cf. commit 71350c5a) unnecessary.
24 lines
535 B
Bash
Executable file
24 lines
535 B
Bash
Executable file
#!/bin/sh
|
|
|
|
prefix="${0%/*}/notifications" # $GIT_DIR/hooks/notifications
|
|
recipient='Nagios Plugin Commits <nagiosplug-checkins@lists.sourceforge.net>'
|
|
maxcommits=100
|
|
maxdiffsize=$((300 * 1024))
|
|
project='nagiosplug'
|
|
gitweburl='http://nagiosplug.git.sf.net/git/gitweb.cgi?p=nagiosplug'
|
|
gitnotify="$prefix/git-notify.pl"
|
|
statefile="$prefix/git-notify.dat"
|
|
|
|
exec "$gitnotify" \
|
|
-c "$project" \
|
|
-m "$recipient" \
|
|
-n "$maxcommits" \
|
|
-s "$maxdiffsize" \
|
|
-t "$statefile" \
|
|
-u "$gitweburl" \
|
|
-A \
|
|
-C \
|
|
-S \
|
|
-T \
|
|
-X \
|
|
-z
|