diff options
author | Mohamad Gebai <mgebai@suse.com> | 2017-04-20 21:40:13 +0200 |
---|---|---|
committer | Mohamad Gebai <mgebai@suse.com> | 2017-04-20 21:52:08 +0200 |
commit | 885c88e0b10234b137a8ee6f85db1ea86a003241 (patch) | |
tree | 653800d76a96d963327becc4f5c290df52c0aa4c /src/init-ceph.in | |
parent | Merge pull request #14262 from guihecheng/rgw_file-fix-rmdir (diff) | |
download | ceph-885c88e0b10234b137a8ee6f85db1ea86a003241.tar.xz ceph-885c88e0b10234b137a8ee6f85db1ea86a003241.zip |
init-ceph: add ceph libraries path to environment
These libraries are set in vstart.sh, but not in init-ceph. When
init-ceph is not invoked through vstart.sh, library paths are missing.
Signed-off-by: Mohamad Gebai <mgebai@suse.com>
Diffstat (limited to '')
-rwxr-xr-x | src/init-ceph.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/init-ceph.in b/src/init-ceph.in index 9a0f95c65bd..c9ecc5d8d58 100755 --- a/src/init-ceph.in +++ b/src/init-ceph.in @@ -33,6 +33,10 @@ else LIBEXECDIR=$CEPH_ROOT/src ETCDIR=. ASSUME_DEV=1 + CEPH_LIB=$CEPH_ROOT/build/lib + echo "$PYTHONPATH" | grep -q $CEPH_LIB || export PYTHONPATH=$CEPH_LIB/cython_modules/lib.2:$PYTHONPATH + echo "$LD_LIBRARY_PATH" | grep -q $CEPH_LIB || export LD_LIBRARY_PATH=$CEPH_LIB:$LD_LIBRARY_PATH + echo "$DYLD_LIBRARY_PATH" | grep -q $CEPH_LIB || export DYLD_LIBRARY_PATH=$CEPH_LIB:$DYLD_LIBRARY_PATH else BINDIR=@bindir@ SBINDIR=@sbindir@ |