diff options
| author | Holger Weiss <holger@zedat.fu-berlin.de> | 2014-02-28 13:28:33 +0100 |
|---|---|---|
| committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2014-02-28 13:28:33 +0100 |
| commit | c08d6a429ba0e0cd3642ba2c2fe85687472ee22f (patch) | |
| tree | 396a37ae462543f0e28f36501c30796b3eb91249 /plugins-scripts/check_sensors.sh | |
| parent | e260efb25690b13002a0bf432507f66bdad90f02 (diff) | |
| download | monitoring-plugins-c08d6a429ba0e0cd3642ba2c2fe85687472ee22f.tar.gz | |
Replace "plugins-scripts/subst.in" foo
Remove the buggy and complex awk(1) magic in "plugins-scripts/subst.in"
in favor of simple sed(1) substitutions.
The plugins in the "plugins-scripts" directory now always use the PATH
specified via "./configure --trusted-path", or the default PATH
hard-coded in "configure.ac".
Fixes #1242.
Diffstat (limited to 'plugins-scripts/check_sensors.sh')
| -rwxr-xr-x | plugins-scripts/check_sensors.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins-scripts/check_sensors.sh b/plugins-scripts/check_sensors.sh index 53db9b49..05c64c48 100755 --- a/plugins-scripts/check_sensors.sh +++ b/plugins-scripts/check_sensors.sh | |||
| @@ -3,8 +3,9 @@ | |||
| 3 | PROGNAME=`basename $0` | 3 | PROGNAME=`basename $0` |
| 4 | PROGPATH=`echo $0 | sed -e 's,[\\/][^\\/][^\\/]*$,,'` | 4 | PROGPATH=`echo $0 | sed -e 's,[\\/][^\\/][^\\/]*$,,'` |
| 5 | REVISION="@NP_VERSION@" | 5 | REVISION="@NP_VERSION@" |
| 6 | TRUSTED_PATH="@trusted_path@" | 6 | PATH="@TRUSTED_PATH@" |
| 7 | PATH=${TRUSTED_PATH:-"/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"} | 7 | |
| 8 | export PATH | ||
| 8 | 9 | ||
| 9 | . $PROGPATH/utils.sh | 10 | . $PROGPATH/utils.sh |
| 10 | 11 | ||
