diff options
author | Sage Weil <sage@inktank.com> | 2013-07-30 23:08:58 -0700 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-07-30 23:08:58 -0700 |
commit | 00dc634451687756ef16f176753d0bd0ba385584 (patch) | |
tree | 8ad5a13c4c5200a37a4a9d844ff6c7b94c99dd2a | |
parent | e70e08c060592715cf4e3403532c8239bebce690 (diff) | |
download | ceph-00dc634451687756ef16f176753d0bd0ba385584.tar.gz |
ceph: developer mode: set PATH, too
Otherwise the call to ceph-conf may fail if it is not installed on the
local machine.
Signed-off-by: Sage Weil <sage@inktank.com>
-rwxr-xr-x | src/ceph.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ceph.in b/src/ceph.in index 6caef354a10..b9d3b04c94d 100755 --- a/src/ceph.in +++ b/src/ceph.in @@ -26,7 +26,7 @@ import sys MYPATH = os.path.abspath(__file__) MYDIR = os.path.dirname(MYPATH) -DEVMODEMSG = '*** DEVELOPER MODE: setting PYTHONPATH and LD_LIBRARY_PATH' +DEVMODEMSG = '*** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***' if MYDIR.endswith('src') and \ os.path.exists(os.path.join(MYDIR, '.libs')) and \ @@ -35,6 +35,7 @@ if MYDIR.endswith('src') and \ if 'LD_LIBRARY_PATH' in os.environ: if MYLIBPATH not in os.environ['LD_LIBRARY_PATH']: os.environ['LD_LIBRARY_PATH'] += ':' + MYLIBPATH + os.environ['PATH'] += ':' + MYDIR print >> sys.stderr, DEVMODEMSG os.execvp('python', ['python'] + sys.argv) else: |