From 45d3e695be499cf9f9956c223883073fc20d48b4 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Sat, 5 Oct 2013 00:08:36 +0200 Subject: Set PATH for all individual Git hook snippets ... just to be on the safe side. 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 @@ set -e set -u +export PATH='/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin' + prefix='/home/plugins' 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 @@ set -e set -u -test "${PWD##*/}" = 'site.git' && exit 0 # Don't report site.git updates. +export PATH='/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin' prefix=$PWD # $GIT_DIR recipient='nagiosplug-checkins@lists.sourceforge.net' @@ -26,6 +26,7 @@ gitnotify='/home/plugins/libexec/git-notify' statedir="$prefix/info" statefile="$statedir/git-notify.dat" +test "${PWD##*/}" != 'site.git' || exit 0 # Don't report site.git updates. test -n "$recipient" || exit 0 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 @@ set -e set -u +export PATH='/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin' + prefix='/home/plugins' repository=${PWD##*/} 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 @@ set -e set -u +export PATH='/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin' + prefix='/home/plugins' repository=${PWD##*/} 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 @@ set -e set -u +export PATH='/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin' + prefix='/home/plugins' repository=${PWD##*/} web_repositories='nagios-plugins.git site.git' -- cgit v0.10-9-g596f