diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-10-04 22:08:36 (GMT) |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-10-04 22:08:36 (GMT) |
commit | 45d3e695be499cf9f9956c223883073fc20d48b4 (patch) | |
tree | 1d5c600bfa21d223773f7026a3dd8e1146a90762 | |
parent | de5c705b7a7922a67a7524dc63581506546fe9c1 (diff) | |
download | site-45d3e695be499cf9f9956c223883073fc20d48b4.tar.gz |
Set PATH for all individual Git hook snippets
... just to be on the safe side.
-rwxr-xr-x | libexec/post-receive.d/01-git-export | 2 | ||||
-rwxr-xr-x | libexec/post-receive.d/01-mail-notify | 3 | ||||
-rwxr-xr-x | libexec/post-receive.d/02-build-snapshots | 2 | ||||
-rwxr-xr-x | libexec/post-receive.d/03-build-docs | 2 | ||||
-rwxr-xr-x | libexec/post-receive.d/04-build-web-site | 2 |
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 @@ | |||
15 | set -e | 15 | set -e |
16 | set -u | 16 | set -u |
17 | 17 | ||
18 | export PATH='/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin' | ||
19 | |||
18 | prefix='/home/plugins' | 20 | prefix='/home/plugins' |
19 | 21 | ||
20 | exec "$prefix/bin/git-export" "$PWD" | 22 | exec "$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 @@ | |||
15 | set -e | 15 | set -e |
16 | set -u | 16 | set -u |
17 | 17 | ||
18 | test "${PWD##*/}" = 'site.git' && exit 0 # Don't report site.git updates. | 18 | export PATH='/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin' |
19 | 19 | ||
20 | prefix=$PWD # $GIT_DIR | 20 | prefix=$PWD # $GIT_DIR |
21 | recipient='nagiosplug-checkins@lists.sourceforge.net' | 21 | recipient='nagiosplug-checkins@lists.sourceforge.net' |
@@ -26,6 +26,7 @@ gitnotify='/home/plugins/libexec/git-notify' | |||
26 | statedir="$prefix/info" | 26 | statedir="$prefix/info" |
27 | statefile="$statedir/git-notify.dat" | 27 | statefile="$statedir/git-notify.dat" |
28 | 28 | ||
29 | test "${PWD##*/}" != 'site.git' || exit 0 # Don't report site.git updates. | ||
29 | test -n "$recipient" || exit 0 | 30 | test -n "$recipient" || exit 0 |
30 | 31 | ||
31 | exec "$gitnotify" \ | 32 | exec "$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 @@ | |||
15 | set -e | 15 | set -e |
16 | set -u | 16 | set -u |
17 | 17 | ||
18 | export PATH='/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin' | ||
19 | |||
18 | prefix='/home/plugins' | 20 | prefix='/home/plugins' |
19 | repository=${PWD##*/} | 21 | repository=${PWD##*/} |
20 | snapshot_repository='nagios-plugins.git' | 22 | snapshot_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 @@ | |||
15 | set -e | 15 | set -e |
16 | set -u | 16 | set -u |
17 | 17 | ||
18 | export PATH='/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin' | ||
19 | |||
18 | prefix='/home/plugins' | 20 | prefix='/home/plugins' |
19 | repository=${PWD##*/} | 21 | repository=${PWD##*/} |
20 | doc_repository='nagios-plugins.git' | 22 | doc_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 @@ | |||
15 | set -e | 15 | set -e |
16 | set -u | 16 | set -u |
17 | 17 | ||
18 | export PATH='/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin' | ||
19 | |||
18 | prefix='/home/plugins' | 20 | prefix='/home/plugins' |
19 | repository=${PWD##*/} | 21 | repository=${PWD##*/} |
20 | web_repositories='nagios-plugins.git site.git' | 22 | web_repositories='nagios-plugins.git site.git' |