[monitoring-plugins] Setting PATH at first

Jan Wagner git at monitoring-plugins.org
Wed Aug 20 21:10:08 CEST 2014


 Module: monitoring-plugins
 Branch: maint
 Commit: 3a668c0f87f3ad31f28997ed43b374edf78f6227
 Author: Jan Wagner <waja at cyconet.org>
   Date: Wed Aug 20 20:32:09 2014 +0200
    URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=3a668c0

Setting PATH at first

---

 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(-)

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
 



More information about the Commits mailing list