summaryrefslogtreecommitdiffstats
path: root/web/attachments/422303-check_oracle-1.4.15-bashprofile.patch
diff options
context:
space:
mode:
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.patch15
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:"