[Pkg-nagios-changes] [pkg-monitoring-plugins] 03/04: Adding 12_PATH_in_scripts_first.dpatch from upstream maint branch
Jan Wagner
waja at moszumanska.debian.org
Thu Sep 18 21:19:26 UTC 2014
This is an automated email from the git hooks/post-receive script.
waja pushed a commit to branch master
in repository pkg-monitoring-plugins.
commit 96647a03738e0d0bb0ce8944ebc32791abaaaf3b
Author: Jan Wagner <waja at cyconet.org>
Date: Wed Aug 20 22:06:55 2014 +0200
Adding 12_PATH_in_scripts_first.dpatch from upstream maint branch
---
debian/patches/00list | 1 +
debian/patches/12_PATH_in_scripts_first.dpatch | 75 ++++++++++++++++++++++++++
2 files changed, 76 insertions(+)
diff --git a/debian/patches/00list b/debian/patches/00list
index 4480684..f4039dc 100644
--- a/debian/patches/00list
+++ b/debian/patches/00list
@@ -2,3 +2,4 @@
# commited upstream
10_check_oracle_tns_bad_string.dpatch
11_check_log_fix_basename_path.dpatch
+12_PATH_in_scripts_first.dpatch
diff --git a/debian/patches/12_PATH_in_scripts_first.dpatch b/debian/patches/12_PATH_in_scripts_first.dpatch
new file mode 100644
index 0000000..76090b0
--- /dev/null
+++ b/debian/patches/12_PATH_in_scripts_first.dpatch
@@ -0,0 +1,75 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 12_PATH_in_scripts_first.dpatch by Jan Wagner <waja at cyconet.org>
+##
+## DP: Set PATH at first in shell scripts
+
+From 3a668c0f87f3ad31f28997ed43b374edf78f6227 Mon Sep 17 00:00:00 2001
+From: Jan Wagner <waja at cyconet.org>
+Date: Wed, 20 Aug 2014 20:32:09 +0200
+Subject: [PATCH] Setting PATH at first
+
+Origin: upstream, https://github.com/monitoring-plugins/monitoring-plugins/commit/3a668c0f87f3ad31f28997ed43b374edf78f6227.patch
+---
+ plugins-scripts/check_log.sh | 5 ++---
+ plugins-scripts/check_oracle.sh | 3 ++-
+ plugins-scripts/check_sensors.sh | 5 ++---
+ 3 files changed, 6 insertions(+), 7 deletions(-)
+
+ at DPATCH@
+diff --git a/plugins-scripts/check_log.sh b/plugins-scripts/check_log.sh
+index f67eff6..d28c8d0 100755
+--- a/plugins-scripts/check_log.sh
++++ b/plugins-scripts/check_log.sh
+@@ -58,12 +58,11 @@
+ # Paths to commands used in this script. These
+ # may have to be modified to match your system setup.
+
++PATH="@TRUSTED_PATH@"
++export PATH
+ PROGNAME=`basename $0`
+ PROGPATH=`echo $0 | sed -e 's,[\\/][^\\/][^\\/]*$,,'`
+ REVISION="@NP_VERSION@"
+-PATH="@TRUSTED_PATH@"
+-
+-export PATH
+
+ . $PROGPATH/utils.sh
+
+diff --git a/plugins-scripts/check_oracle.sh b/plugins-scripts/check_oracle.sh
+index 1873a3c..96078ac 100755
+--- a/plugins-scripts/check_oracle.sh
++++ b/plugins-scripts/check_oracle.sh
+@@ -6,10 +6,11 @@
+ # This Monitoring plugin was created to check Oracle status
+ #
+
++PATH="@TRUSTED_PATH@"
++export PATH
+ PROGNAME=`basename $0`
+ PROGPATH=`echo $0 | sed -e 's,[\\/][^\\/][^\\/]*$,,'`
+ REVISION="@NP_VERSION@"
+-PATH="@TRUSTED_PATH@"
+
+ . $PROGPATH/utils.sh
+
+diff --git a/plugins-scripts/check_sensors.sh b/plugins-scripts/check_sensors.sh
+index 05c64c4..f742830 100755
+--- a/plugins-scripts/check_sensors.sh
++++ b/plugins-scripts/check_sensors.sh
+@@ -1,11 +1,10 @@
+ #!/bin/sh
+
++PATH="@TRUSTED_PATH@"
++export PATH
+ PROGNAME=`basename $0`
+ PROGPATH=`echo $0 | sed -e 's,[\\/][^\\/][^\\/]*$,,'`
+ REVISION="@NP_VERSION@"
+-PATH="@TRUSTED_PATH@"
+-
+-export PATH
+
+ . $PROGPATH/utils.sh
+
+--
+2.0.4
+
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-nagios/pkg-monitoring-plugins.git
More information about the Pkg-nagios-changes
mailing list