diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-09-30 00:03:24 +0200 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-09-30 00:03:24 +0200 |
commit | 0b6423f9c99d9edf8c96fefd0f6c453859395aa1 (patch) | |
tree | 1c2b6b21704a294940f87c7892676998d8371707 /web/attachments/422303-check_oracle-1.4.15-bashprofile.patch | |
download | site-0b6423f9c99d9edf8c96fefd0f6c453859395aa1.tar.gz |
Import Nagios Plugins site
Import the Nagios Plugins web site, Cronjobs, infrastructure scripts,
and configuration files.
Diffstat (limited to 'web/attachments/422303-check_oracle-1.4.15-bashprofile.patch')
-rw-r--r-- | web/attachments/422303-check_oracle-1.4.15-bashprofile.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/web/attachments/422303-check_oracle-1.4.15-bashprofile.patch b/web/attachments/422303-check_oracle-1.4.15-bashprofile.patch new file mode 100644 index 0000000..dfa7cee --- /dev/null +++ b/web/attachments/422303-check_oracle-1.4.15-bashprofile.patch | |||
@@ -0,0 +1,15 @@ | |||
1 | --- /usr/lib64/nagios/plugins/check_oracle 2011-08-29 15:39:13.000000000 +0200 | ||
2 | +++ /usr/lib64/nagios/plugins/check_oracle-bashprofile 2011-08-29 15:49:30.000000000 +0200 | ||
3 | @@ -12,6 +12,12 @@ | ||
4 | |||
5 | . $PROGPATH/utils.sh | ||
6 | |||
7 | +# workaround for sudo -u foo kinda calls and the ensueing env problem | ||
8 | +USERHOMEDIR=`grep "^$USER" /etc/passwd | cut -d: -f6` | ||
9 | +if [ -e $USERHOMEDIR/.bash_profile ]; then | ||
10 | + . $USERHOMEDIR/.bash_profile | ||
11 | +fi | ||
12 | + | ||
13 | |||
14 | print_usage() { | ||
15 | echo "Usage:" | ||