From 0b6423f9c99d9edf8c96fefd0f6c453859395aa1 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 30 Sep 2013 00:03:24 +0200 Subject: Import Nagios Plugins site Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files. --- .../422303-check_oracle-1.4.15-bashprofile.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 web/attachments/422303-check_oracle-1.4.15-bashprofile.patch (limited to 'web/attachments/422303-check_oracle-1.4.15-bashprofile.patch') 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 @@ +--- /usr/lib64/nagios/plugins/check_oracle 2011-08-29 15:39:13.000000000 +0200 ++++ /usr/lib64/nagios/plugins/check_oracle-bashprofile 2011-08-29 15:49:30.000000000 +0200 +@@ -12,6 +12,12 @@ + + . $PROGPATH/utils.sh + ++# workaround for sudo -u foo kinda calls and the ensueing env problem ++USERHOMEDIR=`grep "^$USER" /etc/passwd | cut -d: -f6` ++if [ -e $USERHOMEDIR/.bash_profile ]; then ++ . $USERHOMEDIR/.bash_profile ++fi ++ + + print_usage() { + echo "Usage:" -- cgit v1.2.3-74-g34f1