فهرست منبع

Setting PATH at first

Jan Wagner 12 سال پیش
والد
کامیت
3a668c0f87
3فایلهای تغییر یافته به همراه6 افزوده شده و 7 حذف شده
  1. 2 3
      plugins-scripts/check_log.sh
  2. 2 1
      plugins-scripts/check_oracle.sh
  3. 2 3
      plugins-scripts/check_sensors.sh

+ 2 - 3
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
 

+ 2 - 1
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
 

+ 2 - 3
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