summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2013-10-04 22:08:36 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2013-10-04 22:08:36 (GMT)
commit45d3e695be499cf9f9956c223883073fc20d48b4 (patch)
tree1d5c600bfa21d223773f7026a3dd8e1146a90762 /libexec
parentde5c705b7a7922a67a7524dc63581506546fe9c1 (diff)
downloadsite-45d3e695be499cf9f9956c223883073fc20d48b4.tar.gz
Set PATH for all individual Git hook snippets
... just to be on the safe side.
Diffstat (limited to 'libexec')
-rwxr-xr-xlibexec/post-receive.d/01-git-export2
-rwxr-xr-xlibexec/post-receive.d/01-mail-notify3
-rwxr-xr-xlibexec/post-receive.d/02-build-snapshots2
-rwxr-xr-xlibexec/post-receive.d/03-build-docs2
-rwxr-xr-xlibexec/post-receive.d/04-build-web-site2
5 files changed, 10 insertions, 1 deletions
diff --git a/libexec/post-receive.d/01-git-export b/libexec/post-receive.d/01-git-export
index e16574c..37994e2 100755
--- a/libexec/post-receive.d/01-git-export
+++ b/libexec/post-receive.d/01-git-export
@@ -15,6 +15,8 @@
15set -e 15set -e
16set -u 16set -u
17 17
18export PATH='/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin'
19
18prefix='/home/plugins' 20prefix='/home/plugins'
19 21
20exec "$prefix/bin/git-export" "$PWD" 22exec "$prefix/bin/git-export" "$PWD"
diff --git a/libexec/post-receive.d/01-mail-notify b/libexec/post-receive.d/01-mail-notify
index d9ef967..8e3ce59 100755
--- a/libexec/post-receive.d/01-mail-notify
+++ b/libexec/post-receive.d/01-mail-notify
@@ -15,7 +15,7 @@
15set -e 15set -e
16set -u 16set -u
17 17
18test "${PWD##*/}" = 'site.git' && exit 0 # Don't report site.git updates. 18export PATH='/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin'
19 19
20prefix=$PWD # $GIT_DIR 20prefix=$PWD # $GIT_DIR
21recipient='nagiosplug-checkins@lists.sourceforge.net' 21recipient='nagiosplug-checkins@lists.sourceforge.net'
@@ -26,6 +26,7 @@ gitnotify='/home/plugins/libexec/git-notify'
26statedir="$prefix/info" 26statedir="$prefix/info"
27statefile="$statedir/git-notify.dat" 27statefile="$statedir/git-notify.dat"
28 28
29test "${PWD##*/}" != 'site.git' || exit 0 # Don't report site.git updates.
29test -n "$recipient" || exit 0 30test -n "$recipient" || exit 0
30 31
31exec "$gitnotify" \ 32exec "$gitnotify" \
diff --git a/libexec/post-receive.d/02-build-snapshots b/libexec/post-receive.d/02-build-snapshots
index 59bf9d3..22f5bf9 100755
--- a/libexec/post-receive.d/02-build-snapshots
+++ b/libexec/post-receive.d/02-build-snapshots
@@ -15,6 +15,8 @@
15set -e 15set -e
16set -u 16set -u
17 17
18export PATH='/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin'
19
18prefix='/home/plugins' 20prefix='/home/plugins'
19repository=${PWD##*/} 21repository=${PWD##*/}
20snapshot_repository='nagios-plugins.git' 22snapshot_repository='nagios-plugins.git'
diff --git a/libexec/post-receive.d/03-build-docs b/libexec/post-receive.d/03-build-docs
index 1fd7819..d717f6f 100755
--- a/libexec/post-receive.d/03-build-docs
+++ b/libexec/post-receive.d/03-build-docs
@@ -15,6 +15,8 @@
15set -e 15set -e
16set -u 16set -u
17 17
18export PATH='/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin'
19
18prefix='/home/plugins' 20prefix='/home/plugins'
19repository=${PWD##*/} 21repository=${PWD##*/}
20doc_repository='nagios-plugins.git' 22doc_repository='nagios-plugins.git'
diff --git a/libexec/post-receive.d/04-build-web-site b/libexec/post-receive.d/04-build-web-site
index 68a439c..7c178cf 100755
--- a/libexec/post-receive.d/04-build-web-site
+++ b/libexec/post-receive.d/04-build-web-site
@@ -15,6 +15,8 @@
15set -e 15set -e
16set -u 16set -u
17 17
18export PATH='/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin'
19
18prefix='/home/plugins' 20prefix='/home/plugins'
19repository=${PWD##*/} 21repository=${PWD##*/}
20web_repositories='nagios-plugins.git site.git' 22web_repositories='nagios-plugins.git site.git'