[omd-commits] OMD Git: omd: use absolute paths in profile

git version control git at mathias-kettner.de
Mon Sep 8 10:52:39 CEST 2014


Module:   omd
Branch:   master
Commit:   1177467e00c78157631b6ba70f5442d436e0567d
URL:      http://omdistro.org/projects/omd/repository/revisions/1177467e00c78157631b6ba70f5442d436e0567d

Author:   Sven Nierlein <Sven.Nierlein at consol.de>
Date:     Sun Sep  7 13:07:24 2014 +0200
Commiter: Sven Nierlein <Sven.Nierlein at consol.de>
Date:     Mon Sep  8 10:45:49 2014 +0200

use absolute paths in profile

~ resolves to the wrong folders in apaches shared mode.

---

 packages/omd/skel/.profile |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/packages/omd/skel/.profile b/packages/omd/skel/.profile
index 297176c..db25ce6 100644
--- a/packages/omd/skel/.profile
+++ b/packages/omd/skel/.profile
@@ -2,7 +2,7 @@
 export OMD_SITE=###SITE###
 export OMD_ROOT=###ROOT###
 
-PATH=~/local/bin:~/bin:~/local/lib/perl5/bin:$PATH
+PATH=$OMD_ROOT/local/bin:$OMD_ROOT/bin:$OMD_ROOT/local/lib/perl5/bin:$PATH
 export LD_LIBRARY_PATH=$OMD_ROOT/local/lib:$OMD_ROOT/lib
 
 # enable local perl env
@@ -15,14 +15,14 @@ export PYTHONPATH="$OMD_ROOT/lib/python:$OMD_ROOT/local/lib/python"
 export MAILRC="$OMD_ROOT/etc/mail.rc"
 
 
-if [ -f ~/etc/environment ]
+if [ -f $OMD_ROOT/etc/environment ]
 then
     eval $(egrep -v '^[[:space:]]*(#|$)' < ~/etc/environment | sed 's/^/export /')
 fi
 
 # Only load bashrc when in a bash shell and not loaded yet.
 # The load once is ensured by the variable $BASHRC.
-if [ "$BASH" -a -s ~/.bashrc -a -z "$BASHRC" ]; then
-    . ~/.bashrc
+if [ "$BASH" -a -s $OMD_ROOT/.bashrc -a -z "$BASHRC" ]; then
+    . $OMD_ROOT/.bashrc
 fi
 



More information about the omd-commits mailing list